What is the correct way of providing header-filter for clang-tidy in Cmake?
问题 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