Skip to content

Commit

Permalink
[clang-tidy] enforce header consideration
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthou committed Jun 9, 2024
1 parent 38df470 commit 1d6c78e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 39 deletions.
58 changes: 20 additions & 38 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -74,44 +74,26 @@ Checks: >
readability-simplify-subscript-expr,
readability-string-compare,
readability-use-std-min-max
WarningsAsErrors: "*"
HeaderFilterRegex: 'include/*'
CheckOptions:
- key: readability-identifier-naming.NamespaceCase,
value: lower_case
- key: readability-identifier-naming.ClassCase,
value: CamelCase
- key: readability-identifier-naming.StructCase,
value: CamelCase
- key: readability-identifier-naming.StructSuffix,
value: _t
- key: readability-identifier-naming.FunctionCase,
value: camelBack
- key: readability-identifier-naming.VariableCase,
value: lower_case
- key: readability-identifier-naming.PrivateMemberCase,
value: lower_case
- key: readability-identifier-naming.PrivateMemberSuffix,
value: _
- key: readability-identifier-naming.EnumCase,
value: CamelCase
- key: readability-identifier-naming.EnumSuffix,
value: _e
- key: readability-identifier-naming.EnumConstantCase,
value: lower_case
- key: readability-identifier-naming.GlobalConstantCase,
value: UPPER_CASE
- key: readability-identifier-naming.StaticConstantCase,
value: UPPER_CASE
- key: readability-identifier-naming.StaticVariableCase,
value: lower_case
- key: readability-identifier-naming.StaticVariableSuffix,
value: _
- key: readability-operators-representation.BinaryOperators,
value: "&&;&=;&;|;~;!;!=;||;|=;^;^="
- key: misc-const-correctness.AnalyzeValues,
value: false
- key: misc-include-cleaner.DeduplicateFindings,
value: false

- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.StructSuffix, value: _t }
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.PrivateMemberCase, value: lower_case }
- { key: readability-identifier-naming.PrivateMemberSuffix, value: _ }
- { key: readability-identifier-naming.EnumCase, value: CamelCase }
- { key: readability-identifier-naming.EnumSuffix, value: _e }
- { key: readability-identifier-naming.EnumConstantCase, value: lower_case }
- { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.StaticConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.StaticVariableCase, value: lower_case }
- { key: readability-identifier-naming.StaticVariableSuffix, value: _ }
- { key: readability-operators-representation.BinaryOperators, value: '&&;&=;&;|;~;!;!=;||;|=;^;^=' }
- { key: misc-const-correctness.AnalyzeValues, value: false }
- { key: misc-include-cleaner.DeduplicateFindings, value: false }
ExtraArgsBefore:
- '-frelaxed-template-template-args'
2 changes: 1 addition & 1 deletion .github/run_clang_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

def runclangtidy(filepath):
print("Checking: " + filepath)
proc = subprocess.Popen(f'clang-tidy --quiet -warnings-as-errors=* -p {builddir} {filepath}', shell=True)
proc = subprocess.Popen(f'clang-tidy -warnings-as-errors=* -p {builddir} {filepath}', shell=True)
if proc.wait() != 0:
failedfiles.append(filepath)

Expand Down

0 comments on commit 1d6c78e

Please sign in to comment.