Skip to content

Commit

Permalink
[style, fix] add clang-tidy; fix some warnings about them
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamPast committed Dec 12, 2024
1 parent 0765edf commit 0e27ec7
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 89 deletions.
44 changes: 44 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Checks: |
*
-readability-*
-llvmlibc-*
-altera-id-dependent-backward-branch
-altera-struct-pack-align
-altera-unroll-loops
-bugprone-branch-clone
-bugprone-easily-swappable-parameters
-bugprone-reserved-identifier
-cert-dcl37-c
-cert-dcl51-cpp
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling
-cppcoreguidelines-avoid-magic-numbers
-cppcoreguidelines-init-variables
-eadability-avoid-unconditional-preprocessor-if
-google-readability-braces-around-statements
-hicpp-braces-around-statements
-hicpp-signed-bitwise
-hicpp-uppercase-literal-suffix
-llvm-else-after-return
-llvm-header-guard
-misc-confusable-identifiers
-misc-no-recursion
-bugprone-unhandled-self-assignment
-cert-oop54-cpp
-cppcoreguidelines-avoid-c-arrays
-cppcoreguidelines-avoid-const-or-ref-data-members
-cppcoreguidelines-pro-bounds-array-to-pointer-decay
-cppcoreguidelines-pro-type-member-init
-cppcoreguidelines-pro-type-reinterpret-cast
-fuchsia-default-arguments-calls
-fuchsia-default-arguments-declarations
-fuchsia-overloaded-operator
-google-explicit-constructor
-hicpp-avoid-c-arrays
-hicpp-explicit-conversions
-hicpp-member-init
-hicpp-no-array-decay
-modernize-avoid-c-arrays
-modernize-use-nodiscard
-modernize-use-trailing-return-type
Loading

0 comments on commit 0e27ec7

Please sign in to comment.