Skip to content

Commit 5bd2a25

Browse files
committed
update .clang-tidy configuration to enhance code quality checks
1 parent f74beb1 commit 5bd2a25

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.clang-tidy

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,20 @@ Checks: >
1818
-readability-magic-numbers,
1919
-readability-uppercase-literal-suffix,
2020
CheckOptions:
21-
- { key: bugprone-misplaced-widening-cast.CheckImplicitCasts, value: true }
22-
- { key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression, value: true }
23-
- { key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison, value: true }
24-
- { key: readability-uniqueptr-delete-release.PreferResetCall, value: true }
25-
- { key: cppcoreguidelines-narrowing-conversions.PedanticMode, value: true }
21+
- { key: bugprone-argument-comment.StrictMode, value: true }
22+
- { key: bugprone-argument-comment.CommentBoolLiterals, value: true }
23+
- { key: bugprone-misplaced-widening-cast.CheckImplicitCasts, value: true }
24+
- { key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression, value: true }
25+
- { key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison, value: true }
26+
- { key: readability-simplify-boolean-expr.ChainedConditionalReturn, value: true }
27+
- { key: readability-simplify-boolean-expr.ChainedConditionalAssignment, value: true }
28+
- { key: readability-uniqueptr-delete-release.PreferResetCall, value: true }
29+
- { key: cppcoreguidelines-init-variables.MathHeader, value: "<cmath>" }
30+
- { key: cppcoreguidelines-narrowing-conversions.PedanticMode, value: true }
31+
- { key: readability-else-after-return.WarnOnUnfixable, value: true }
32+
- { key: readability-else-after-return.WarnOnConditionVariables, value: true }
33+
- { key: readability-inconsistent-declaration-parameter-name.Strict, value: true }
34+
- { key: readability-qualified-auto.AddConstToQualified, value: true }
2635
# Identifier styles
2736
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
2837
- { key: readability-identifier-naming.FunctionCase, value: camelBack }

0 commit comments

Comments
 (0)