From d576a7b1bdb5e72166f8a38e724b722387f6969a Mon Sep 17 00:00:00 2001 From: wep21 Date: Sun, 26 May 2024 14:13:29 +0900 Subject: [PATCH] apply uncrustify except for EigenLab.hpp Signed-off-by: wep21 --- grid_map_filters/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/grid_map_filters/CMakeLists.txt b/grid_map_filters/CMakeLists.txt index 9d0cba5a..711302f2 100644 --- a/grid_map_filters/CMakeLists.txt +++ b/grid_map_filters/CMakeLists.txt @@ -136,6 +136,7 @@ if(BUILD_TESTING) list(APPEND AMENT_LINT_AUTO_EXCLUDE ament_cmake_cpplint ament_cmake_copyright + ament_cmake_uncrustify ) ament_lint_auto_find_test_dependencies() @@ -144,6 +145,17 @@ if(BUILD_TESTING) ament_cpplint( FILTERS -legal/copyright -build/include_order ) + + # run uncrustify except for EigenLab.hpp + find_package(ament_cmake_uncrustify) + set( + _linter_excludes + include/EigenLab/EigenLab.hpp + ) + ament_uncrustify( + EXCLUDE ${_linter_excludes} + LANGUAGE c++ + ) endif() ament_lint_auto_find_test_dependencies() endif()