Skip to content

Instantly share code, notes, and snippets.

@bernhardmgruber
Created July 7, 2021 12:01
Show Gist options
  • Save bernhardmgruber/41cc8356cf6ce13483e793cde7d70b9b to your computer and use it in GitHub Desktop.
Save bernhardmgruber/41cc8356cf6ce13483e793cde7d70b9b to your computer and use it in GitHub Desktop.
.clang-tidy
Checks: "
*,
-bugprone-exception-escape, # bgruber is fine with exceptions escaping main we cannot add main as an exception
-bugprone-forward-declaration-namespace, # too many false positives in LLAMA
-cert-msc32-c,
-cert-msc51-cpp,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-member-init, # maybe enable in the future
-cppcoreguidelines-pro-type-reinterpret-cast, # we need some reinterpret casts in LLAMA
-fuchsia-default-arguments-calls,
-fuchsia-default-arguments-declarations,
-fuchsia-overloaded-operator,
-fuchsia-trailing-return,
-google-build-using-namespace,
-google-readability-braces-around-statements,
-google-readability-todo,
-google-runtime-references,
-hicpp-avoid-c-arrays,
-hicpp-braces-around-statements,
-hicpp-member-init, # maybe enable in the future
-hicpp-named-parameter,
-hicpp-uppercase-literal-suffix,
-llvmlibc-callee-namespace,
-llvmlibc-implementation-in-namespace,
-llvmlibc-restrict-system-libc-headers,
-misc-non-private-member-variables-in-classes,
-modernize-avoid-c-arrays,
-modernize-use-nodiscard,
-openmp-use-default-none,
-portability-simd-intrinsics,
-readability-braces-around-statements,
-readability-magic-numbers,
-readability-misleading-indentation, # many false positives because of constexpr if
-readability-named-parameter,
-readability-uppercase-literal-suffix,
-readability-function-cognitive-complexity,
-altera-struct-pack-align,
-misc-no-recursion
"
WarningsAsErrors: '*'
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
User: ''
CheckOptions:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment