diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2019-12-06 08:00:13 +0100 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-12-09 18:22:35 +0000 |
commit | 72733c1063f3e5f36af2d1d608808718ae0fda0e (patch) | |
tree | 8a90d77b49e31b2811dc51f03fea6470f33c2b2f /scripts | |
parent | 8c90c402365f9fb4e09ebb163fe40cddb04c04b7 (diff) |
Ignore included .moc files when running clang-tidy
Header-filter regexp was a bit wrong and accepted moc files included in
cpp files. This is not desired, since moc files are auto-generated and
produce some warnings that cannot be fixed
Change-Id: Iedc065f89129ad0f85df17988dc6e050e6edf7d6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/run-analyzer.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/run-analyzer.sh b/scripts/run-analyzer.sh index 7f437ac04..17ae2a8d7 100755 --- a/scripts/run-analyzer.sh +++ b/scripts/run-analyzer.sh @@ -108,4 +108,4 @@ with open(file, 'w') as f: " python -c "${SCRIPT}" analyzer/compile_commands.json -"$RUN_CLANG_TIDY" -p analyzer -clang-tidy-binary "$CLANG_TIDY" -j $CPU_COUNT -header-filter=".*qbs.*\.h" -quiet +"$RUN_CLANG_TIDY" -p analyzer -clang-tidy-binary "$CLANG_TIDY" -j $CPU_COUNT -header-filter=".*qbs/.*\.h$" -quiet |