[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 3 05:18:45 PDT 2025


================
@@ -105,6 +105,10 @@ Improvements to clang-tidy
   now run checks in parallel by default using all available hardware threads.
   Both scripts display the number of threads being used in their output.
 
+- :program:`clang-tidy` no longer attemps to analyze code from system headers
+  by default, greatly improving performance. This behavior is disabled if the
+  `SystemHeaders` option is enabled.
----------------
Xazax-hun wrote:

I wonder if this should be `AnalyzeSystemHeaders` or something similar to make it clearer what the option is for. 

https://github.com/llvm/llvm-project/pull/151035


More information about the cfe-commits mailing list