I have projects that sets Clang-tidy configuration as following
set(CMAKE_CXX_CLANG_TIDY "clang-tidy;-checks=google-*,cppcoreguidelines-*;")
However, I have noticed that it was checking all the files that are not even in the current repo like
/opt/ros/melodic/include/ros/console.h
and all the .h/.hpp files of submodules...
I tried to add a regex to filter the target .h files but couldn't get it working...
I have given absolute path for a single .hpp file but it was still evaluating /opt/ros/melodic/include files...
Can I have an example on header-filter??
I assume clang-tidy will check the corresponding cpp file if hpp is in the filter. am I correct?