Skip to content

Commit 7bbc6f8

Browse files
authored
Do not override clang-tidy header filter on command line (#84)
1 parent fddd573 commit 7bbc6f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Checks: >
3333
3434
WarningsAsErrors: ''
3535

36-
HeaderFilterRegex: '.*\.(h|hpp)$'
36+
HeaderFilterRegex: '.*/(phlex|form)/.*\.(h|hpp)$'
3737

3838
CheckOptions:
3939
# Naming conventions

Modules/private/RunClangTidyFix.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fi
6161
CMD=("$RUN_CLANG_TIDY" -p "$COMPILE_DB" -clang-tidy-binary "$CLANG_TIDY_BIN" -config-file "$CLANG_TIDY_CONFIG")
6262
[ -n "$CHECKS_ARG" ] && CMD+=("$CHECKS_ARG")
6363
[ -n "$EXPORT_FIXES_FILE" ] && CMD+=("-export-fixes=$EXPORT_FIXES_FILE")
64-
CMD+=("-source-filter" "$FILES_REGEX" "-header-filter" "$FILES_REGEX")
64+
CMD+=("-source-filter" "$FILES_REGEX")
6565
[ "$DO_FIX" -eq 1 ] && CMD+=("-fix")
6666

6767
if [ ${#FILES_ARG_LIST[@]} -gt 0 ]; then

0 commit comments

Comments
 (0)