Ignore system headers in clang-tidy
问题 tldr;> How do I hide warnings from system headers in clang-tidy? I have the following minimal example source file, which triggers a clang-tidy warning in the system headers: #include <future> int main() { std::promise<int> p; p.set_value(3); } Calling it with libstdc++ 7.0.1 using clang-tidy 4.0.0 on Ubuntu 17.04: $ clang-tidy main.cpp -extra-arg=-std=c++14 yields Running without flags. 1 warning generated. /usr/lib/gcc/x86_64-linux-gnu/7.0.1/../../../../include/c++/7.0.1/mutex:693:5: warning