You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[clang-tidy] Skip declarations in system headers in RenamerClangTidyCheck
One typically only wants to perform renaming operations in user code,
not in system headers (which are out of the user's control).
Let's skip those altogether.
This leads to performance improvements in clang-tidy. As a benchmark,
I run all checks on a .cpp file that #includes all C++ standard
headers.
On trunk:
Suppressed 213362 warnings (213362 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
real 0m14.517s
user 0m14.383s
sys 0m0.132s
On this patch:
Suppressed 75107 warnings (75107 in non-user code).
real 0m12.545s
user 0m12.349s
sys 0m0.188s
0 commit comments