Skip to content

Commit

Permalink
Use hpp for C++ headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanplusplus committed Feb 16, 2024
1 parent 04c2098 commit d93ec68
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .rerun
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
--no-notify
-c
-w 1
-p **/*.{c,cpp,h}
-p **/*.{c,cpp,h,hpp}
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"maintainer": true
}
],
"version": "6.2.0",
"version": "6.3.0",
"frameworks": "*",
"platforms": "*",
"export": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @brief Time source test double.
*/

#ifndef tiny_time_source_double_h
#define tiny_time_source_double_h
#ifndef tiny_time_source_double_hpp
#define tiny_time_source_double_hpp

#include "i_tiny_time_source.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* @brief Timer group test double.
*/

#ifndef tiny_timer_group_double_h
#define tiny_timer_group_double_h
#ifndef tiny_timer_group_double_hpp
#define tiny_timer_group_double_hpp

#include "tiny_time_source_double.h"
#include "double/tiny_time_source_double.hpp"

extern "C" {
#include "tiny_timer.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @brief UART test double.
*/

#ifndef tiny_uart_double_h
#define tiny_uart_double_h
#ifndef tiny_uart_double_hpp
#define tiny_uart_double_hpp

extern "C" {
#include "hal/i_tiny_uart.h"
Expand Down
2 changes: 1 addition & 1 deletion test/src/tiny_time_source_double.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @brief
*/

#include "double/tiny_time_source_double.h"
#include "double/tiny_time_source_double.hpp"
#include "tiny_utils.h"

static tiny_time_source_ticks_t ticks(i_tiny_time_source_t* _self)
Expand Down
2 changes: 1 addition & 1 deletion test/src/tiny_timer_group_double.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

#include <algorithm>
#include "double/tiny_timer_group_double.h"
#include "double/tiny_timer_group_double.hpp"
#include "tiny_utils.h"

void tiny_timer_group_double_init(
Expand Down
2 changes: 1 addition & 1 deletion test/src/tiny_uart_double.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

#include "CppUTestExt/MockSupport.h"
#include "double/tiny_uart_double.h"
#include "double/tiny_uart_double.hpp"
#include "tiny_utils.h"

static void send(i_tiny_uart_t* _self, uint8_t byte)
Expand Down
2 changes: 1 addition & 1 deletion test/tests/tiny_comm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern "C" {

#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
#include "double/tiny_uart_double.h"
#include "double/tiny_uart_double.hpp"

#define and_

Expand Down
2 changes: 1 addition & 1 deletion test/tests/tiny_timer_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extern "C" {

#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
#include "double/tiny_time_source_double.h"
#include "double/tiny_time_source_double.hpp"

static tiny_timer_ticks_t restart_ticks;
static tiny_timer_group_t* static_group;
Expand Down

0 comments on commit d93ec68

Please sign in to comment.