Skip to content

Commit

Permalink
meta: Enable some clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yeetari committed Feb 11, 2024
1 parent 9289efb commit 0eafa52
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ Checks: >
bugprone-copy-constructor-init,
bugprone-dangling-handle,
bugprone-dynamic-static-initializers,
bugprone-empty-catch,
bugprone-exception-escape,
bugprone-fold-init-type,
bugprone-forward-declaration-namespace,
bugprone-forwarding-reference-overload,
bugprone-implicit-widening-of-multiplication-result,
bugprone-inaccurate-erase,
bugprone-incorrect-roundings,
bugprone-infinite-loop,
Expand All @@ -24,24 +26,32 @@ Checks: >
bugprone-misplaced-pointer-arithmetic-in-alloc,
bugprone-misplaced-widening-cast,
bugprone-move-forwarding-reference,
bugprone-multiple-new-in-one-expression,
bugprone-multiple-statement-macro,
bugprone-no-escape,
bugprone-non-zero-enum-to-bool-conversion,
bugprone-not-null-terminated-result,
bugprone-parent-virtual-call,
bugprone-posix-return,
bugprone-redundant-branch-condition,
bugprone-reserved-identifier,
bugprone-shared-ptr-array-mismatch,
bugprone-signal-handler,
bugprone-signed-char-misuse,
bugprone-sizeof-container,
bugprone-sizeof-expression,
bugprone-spuriously-wake-up-functions,
bugprone-standalone-empty,
bugprone-string-constructor,
bugprone-string-integer-assignment,
bugprone-string-literal-with-embedded-nul,
bugprone-stringview-nullptr,
bugprone-suspicious-enum-usage,
bugprone-suspicious-include,
bugprone-suspicious-memory-comparison,
bugprone-suspicious-memset-usage,
bugprone-suspicious-missing-comma,
bugprone-suspicious-realloc-usage,
bugprone-suspicious-semicolon,
bugprone-suspicious-string-compare,
bugprone-swapped-arguments,
Expand All @@ -51,6 +61,8 @@ Checks: >
bugprone-undefined-memory-manipulation,
bugprone-undelegated-constructor,
bugprone-unhandled-self-assignment,
bugprone-unique-ptr-array-mismatch,
bugprone-unsafe-functions,
bugprone-unused-raii,
bugprone-unused-return-value,
bugprone-use-after-move,
Expand All @@ -76,7 +88,11 @@ Checks: >
hicpp-no-assembler,
llvm-include-order,
llvm-namespace-comment,
misc-confusable-identifiers,
misc-definitions-in-headers,
misc-header-include-cycle,
misc-misleading-bidirectional,
misc-misleading-identifier,
misc-new-delete-overloads,
misc-non-copyable-objects,
misc-redundant-expression,
Expand All @@ -92,6 +108,7 @@ Checks: >
modernize-concat-nested-namespaces,
modernize-deprecated-ios-base-aliases,
modernize-loop-convert,
modernize-macro-to-enum,
modernize-make-shared,
modernize-make-unique,
modernize-raw-string-literal,
Expand All @@ -101,6 +118,7 @@ Checks: >
modernize-replace-random-shuffle,
modernize-return-braced-init-list,
modernize-shrink-to-fit,
modernize-type-traits,
modernize-unary-static-assert,
modernize-use-auto,
modernize-use-bool-literals,
Expand Down Expand Up @@ -166,5 +184,6 @@ Checks: >
FormatStyle: file
CheckOptions:
bugprone-assert-side-effect.AssertMacros: VULL_ASSERT,VULL_ASSERT_PEDANTIC
bugprone-implicit-widening-of-multiplication-result.UseCXXHeadersInCppSources: false
performance-unnecessary-value-param.AllowedTypes: Optional
readability-uppercase-literal-suffix.NewSuffixes: f;u;l;ul;ull

0 comments on commit 0eafa52

Please sign in to comment.