clang-tidy: Update HeaderFilterRegex to only scan files in subdir "(ns*)|(NS*)"

This commit is contained in:
Eduardo Almeida
2023-01-23 15:08:44 +00:00
parent e4837c4c86
commit 41a5908cb1
2 changed files with 2 additions and 2 deletions

View File

@@ -45,5 +45,5 @@ Checks: >
readability-uppercase-literal-suffix,
FormatStyle: "file"
HeaderFilterRegex: "(contrib|examples|src|scratch|utils)/*/.*h"
HeaderFilterRegex: ".*(ns|NS).*/(contrib|examples|src|scratch|utils)/*/.*h"
UseColor: true

View File

@@ -79,7 +79,7 @@ clang-tidy-diff:
- git fetch upstream master
- git diff -U0 upstream/master |
clang-tidy-diff-14.py -path cmake-cache/ -p1 -quiet -use-color
-iregex "(contrib|examples|src|scratch|utils)\/.+\.(cpp|cc|cxx|c|h|hpp)"
-iregex ".*(ns|NS).*\/(contrib|examples|src|scratch|utils)\/.+\.(cpp|cc|cxx|c|h|hpp)"
1> $CLANG_TIDY_OUTPUT
2> /dev/null
- if egrep -A 3 "file not found \[clang-diagnostic-error\]" $CLANG_TIDY_OUTPUT ; then