From d93ec68ff0b60614beeae9131bcc8723c9c2d354 Mon Sep 17 00:00:00 2001 From: Ryan Hartlage Date: Fri, 16 Feb 2024 15:51:44 -0500 Subject: [PATCH] Use hpp for C++ headers --- .rerun | 2 +- library.json | 2 +- ...iny_time_source_double.h => tiny_time_source_double.hpp} | 4 ++-- ...iny_timer_group_double.h => tiny_timer_group_double.hpp} | 6 +++--- .../double/{tiny_uart_double.h => tiny_uart_double.hpp} | 4 ++-- test/src/tiny_time_source_double.cpp | 2 +- test/src/tiny_timer_group_double.cpp | 2 +- test/src/tiny_uart_double.cpp | 2 +- test/tests/tiny_comm_test.cpp | 2 +- test/tests/tiny_timer_test.cpp | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) rename test/include/double/{tiny_time_source_double.h => tiny_time_source_double.hpp} (90%) rename test/include/double/{tiny_timer_group_double.h => tiny_timer_group_double.hpp} (80%) rename test/include/double/{tiny_uart_double.h => tiny_uart_double.hpp} (94%) diff --git a/.rerun b/.rerun index 059d41e..efe7e89 100644 --- a/.rerun +++ b/.rerun @@ -3,4 +3,4 @@ --no-notify -c -w 1 --p **/*.{c,cpp,h} +-p **/*.{c,cpp,h,hpp} diff --git a/library.json b/library.json index cff7cea..30b49a5 100644 --- a/library.json +++ b/library.json @@ -13,7 +13,7 @@ "maintainer": true } ], - "version": "6.2.0", + "version": "6.3.0", "frameworks": "*", "platforms": "*", "export": { diff --git a/test/include/double/tiny_time_source_double.h b/test/include/double/tiny_time_source_double.hpp similarity index 90% rename from test/include/double/tiny_time_source_double.h rename to test/include/double/tiny_time_source_double.hpp index 29dc1de..c1f10cb 100644 --- a/test/include/double/tiny_time_source_double.h +++ b/test/include/double/tiny_time_source_double.hpp @@ -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" diff --git a/test/include/double/tiny_timer_group_double.h b/test/include/double/tiny_timer_group_double.hpp similarity index 80% rename from test/include/double/tiny_timer_group_double.h rename to test/include/double/tiny_timer_group_double.hpp index bfb7c9d..74f4005 100644 --- a/test/include/double/tiny_timer_group_double.h +++ b/test/include/double/tiny_timer_group_double.hpp @@ -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" diff --git a/test/include/double/tiny_uart_double.h b/test/include/double/tiny_uart_double.hpp similarity index 94% rename from test/include/double/tiny_uart_double.h rename to test/include/double/tiny_uart_double.hpp index 3cb94ff..615bc94 100644 --- a/test/include/double/tiny_uart_double.h +++ b/test/include/double/tiny_uart_double.hpp @@ -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" diff --git a/test/src/tiny_time_source_double.cpp b/test/src/tiny_time_source_double.cpp index 517eaab..ad020c2 100644 --- a/test/src/tiny_time_source_double.cpp +++ b/test/src/tiny_time_source_double.cpp @@ -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) diff --git a/test/src/tiny_timer_group_double.cpp b/test/src/tiny_timer_group_double.cpp index d3fc56f..dc2e42c 100644 --- a/test/src/tiny_timer_group_double.cpp +++ b/test/src/tiny_timer_group_double.cpp @@ -4,7 +4,7 @@ */ #include -#include "double/tiny_timer_group_double.h" +#include "double/tiny_timer_group_double.hpp" #include "tiny_utils.h" void tiny_timer_group_double_init( diff --git a/test/src/tiny_uart_double.cpp b/test/src/tiny_uart_double.cpp index 58a0cdd..f49d3c6 100644 --- a/test/src/tiny_uart_double.cpp +++ b/test/src/tiny_uart_double.cpp @@ -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) diff --git a/test/tests/tiny_comm_test.cpp b/test/tests/tiny_comm_test.cpp index 8a08dc7..8adbb24 100644 --- a/test/tests/tiny_comm_test.cpp +++ b/test/tests/tiny_comm_test.cpp @@ -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_ diff --git a/test/tests/tiny_timer_test.cpp b/test/tests/tiny_timer_test.cpp index b442ec9..0d1db00 100644 --- a/test/tests/tiny_timer_test.cpp +++ b/test/tests/tiny_timer_test.cpp @@ -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;