Skip to content

Commit

Permalink
chore: cleanup clang tidy and clang format configs
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardz1 committed Feb 9, 2025
1 parent 07ee30d commit d578645
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
BasedOnStyle: LLVM
---
BasedOnStyle: LLVM
42 changes: 35 additions & 7 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,8 +1,36 @@
Checks: '-*,clang-analyzer-*,modernize-*,performance-*,bugprone-*,portability-*,cppcoreguidelines-*,misc-*,readability-*,google-*,concurrency-*,-bugprone-easily-swappable-parameters,-readability-identifier-length,-readability-avoid-const-params-in-decls,-google-explicit-constructor'
---
Checks: >-
-*,
clang-analyzer-*,
modernize-*,
performance-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
portability-*,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-magic-numbers,# It's an alias for readability-magic-numbers,
misc-*,
readability-*,
-readability-identifier-length,
-readability-avoid-const-params-in-decls,
-readability-math-missing-parentheses,
google-*,
-google-explicit-constructor,
concurrency-*
CheckOptions:
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true
- key: readability-magic-numbers.IgnoredFloatingPointValues
value: 1.0,100.0,0.5,2.0
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true
- key: readability-magic-numbers.IgnoredFloatingPointValues
value: "1.0;0.5;2.0;"
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true

0 comments on commit d578645

Please sign in to comment.