From b359a19cf002814ef73b83cdceed94598cfb96b5 Mon Sep 17 00:00:00 2001 From: Miaofei Date: Sun, 14 Feb 2021 15:38:28 -0800 Subject: [PATCH] enable clang-tidy linter by default Signed-off-by: Miaofei --- .../cmake/ament_cmake_clang_tidy_lint_hook.cmake | 2 +- ament_lint_common/package.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ament_cmake_clang_tidy/cmake/ament_cmake_clang_tidy_lint_hook.cmake b/ament_cmake_clang_tidy/cmake/ament_cmake_clang_tidy_lint_hook.cmake index 39c2bcdd..7fa8e654 100644 --- a/ament_cmake_clang_tidy/cmake/ament_cmake_clang_tidy_lint_hook.cmake +++ b/ament_cmake_clang_tidy/cmake/ament_cmake_clang_tidy_lint_hook.cmake @@ -24,5 +24,5 @@ file(GLOB_RECURSE _source_files FOLLOW_SYMLINKS ) if(_source_files) message(STATUS "Added test 'clang_tidy' to check C / C++ code style") - ament_clang_tidy() + ament_clang_tidy(${CMAKE_BINARY_DIR}) endif() diff --git a/ament_lint_common/package.xml b/ament_lint_common/package.xml index 105fd3a5..7e097df0 100644 --- a/ament_lint_common/package.xml +++ b/ament_lint_common/package.xml @@ -16,7 +16,7 @@ ament_cmake_core - + ament_cmake_clang_tidy ament_cmake_copyright ament_cmake_cppcheck ament_cmake_cpplint