Skip to content

Commit

Permalink
Merge pull request #4003 from hzeller/feature-20241107-update-clang-tidy
Browse files Browse the repository at this point in the history
Update clang-tidy to include some more recent rules..
  • Loading branch information
alaindargelas authored Nov 8, 2024
2 parents 5c96759 + 38d6053 commit ed9497d
Show file tree
Hide file tree
Showing 3 changed files with 613 additions and 21 deletions.
54 changes: 33 additions & 21 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
# readability-make-member-function-const is great, but it also suggests that
# in cases where we return a non-const pointer.
# So good for a regular cleanup-sweep but not as default.
Expand All @@ -10,12 +9,33 @@
# performance-inefficient-string-concatenation is good, but until we use
# absl in this project with absl::StrCat(), the alternatives are not improving
# readability.
WarningsAsErrors: ''
HeaderFilterRegex: ''
Checks: >
clang-diagnostic-*,clang-analyzer-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-narrowing-conversions,
-bugprone-easily-swappable-parameters,
clang-diagnostic-*,
clang-analyzer-*,
-clang-analyzer-core.CallAndMessage,
-clang-analyzer-cplusplus.NewDeleteLeaks,
google-*,
-google-build-using-namespace,
-google-readability-avoid-underscore-in-googletest-name,
-google-readability-braces-around-statements,
-google-readability-casting,
-google-readability-todo,
-google-runtime-int,
misc-*,
-misc-const-correctness,
-misc-no-recursion,
-misc-redundant-expression,
-misc-unused-parameters,
-misc-use-anonymous-namespace,
modernize-*,
-modernize-use-trailing-return-type,
-modernize-use-auto,
performance-*,
-performance-avoid-endl,
readability-*,
-readability-braces-around-statements,
-readability-convert-member-functions-to-static,
Expand All @@ -31,28 +51,20 @@ Checks: >
-readability-qualified-auto,
-readability-redundant-access-specifiers,
-readability-simplify-boolean-expr,
-readability-uppercase-literal-suffix,
google-*,
-google-build-using-namespace,
-google-readability-avoid-underscore-in-googletest-name,
-google-readability-braces-around-statements,
-google-readability-casting,
-google-readability-todo,
-google-runtime-int,
performance-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-narrowing-conversions,
-bugprone-easily-swappable-parameters,
modernize-loop-convert,
modernize-raw-string-literal,
modernize-use-override,
-readability-uppercase-literal-suffix
WarningsAsErrors: ''
HeaderFilterRegex: ''
CheckOptions:
- key: performance-unnecessary-value-param.AllowedTypes
value: 'NodeId;SymbolId;PathId'
- key: performance-unnecessary-copy-initialization.AllowedTypes
value: 'NodeId;SymbolId;PathId'
- key: performance-for-range-copy.AllowedTypes
value: 'NodeId;SymbolId;PathId'
...
- key: performance-unnecessary-value-param.AllowedTypes
value: ::SURELOG::SymbolId;SURELOG::SymbolId;SymbolId;::SURELOG::NodeId;SURELOG::NodeId;NodeId;::SURELOG::PathId;SURELOG::PathId;PathId
- key: performance-for-range-copy.AllowedTypes
value: ::SURELOG::SymbolId;SURELOG::SymbolId;SymbolId;::SURELOG::NodeId;SURELOG::NodeId;NodeId;::SURELOG::PathId;SURELOG::PathId;PathId
- key: performance-unnecessary-copy-initialization.AllowedTypes
value: ::SURELOG::SymbolId;SURELOG::SymbolId;SymbolId;::SURELOG::NodeId;SURELOG::NodeId;NodeId;::SURELOG::PathId;SURELOG::PathId;PathId
Loading

0 comments on commit ed9497d

Please sign in to comment.