From 2085798d3439087ebfb176fb515cd83521863a4b Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Sat, 17 Oct 2026 22:25:52 +0800 Subject: [PATCH] Standardize native header extensions to `h` --- package.json | 2 +- src/addon.cpp | 2 +- src/clock_event.cpp | 2 +- src/{clock_event.hpp => clock_event.h} | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/{clock_event.hpp => clock_event.h} (95%) diff --git a/package.json b/package.json index 86f6f33d5..cbf32b500 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ "*.{js,ts,md}": [ "prettier --write" ], - "*.{hpp,cpp}": [ + "*.{h,cpp}": [ "clang-format -i -style=file" ] }, diff --git a/src/addon.cpp b/src/addon.cpp index 5975f6e8e..73efbe8bb 100644 --- a/src/addon.cpp +++ b/src/addon.cpp @@ -15,7 +15,7 @@ #include #include -#include "clock_event.hpp" +#include "clock_event.h" #include "macros.h" #include "rcl_action_client_bindings.h" #include "rcl_action_goal_bindings.h" diff --git a/src/clock_event.cpp b/src/clock_event.cpp index 9070daa41..2d1298eb7 100644 --- a/src/clock_event.cpp +++ b/src/clock_event.cpp @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "clock_event.hpp" +#include "clock_event.h" #include #include diff --git a/src/clock_event.hpp b/src/clock_event.h similarity index 95% rename from src/clock_event.hpp rename to src/clock_event.h index ddde76ef3..7927fe012 100644 --- a/src/clock_event.hpp +++ b/src/clock_event.h @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef SRC_CLOCK_EVENT_HPP_ -#define SRC_CLOCK_EVENT_HPP_ +#ifndef SRC_CLOCK_EVENT_H_ +#define SRC_CLOCK_EVENT_H_ #include #include @@ -59,4 +59,4 @@ void InitClockEventBindings(Napi::Env env, Napi::Object exports); } // namespace rclnodejs -#endif // SRC_CLOCK_EVENT_HPP_ +#endif // SRC_CLOCK_EVENT_H_