Skip to content

Instantly share code, notes, and snippets.

@mattxlee
Created July 8, 2024 14:30
Show Gist options
  • Save mattxlee/5840ce07e9a5ed1d0638ae829897ce9a to your computer and use it in GitHub Desktop.
Save mattxlee/5840ce07e9a5ed1d0638ae829897ce9a to your computer and use it in GitHub Desktop.
clang-tidy for c++ config file.
Checks: 'clang-analyzer-*\
,bugprone-*,\
-bugprone-branch-clone,\
-bugprone-easily-swappable-parameters,\
cppcoreguidelines-*,\
-cppcoreguidelines-pro-type-const-cast,\
-cppcoreguidelines-pro-type-reinterpret-cast,\
-cppcoreguidelines-init-variables,\
-cppcoreguidelines-pro-type-member-init,\
-cppcoreguidelines-avoid-magic-numbers,\
-cppcoreguidelines-avoid-c-arrays,\
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,\
-cppcoreguidelines-avoid-non-const-global-variables,\
-cppcoreguidelines-owning-memory,\
-cppcoreguidelines-pro-bounds-pointer-arithmetic,\
-cppcoreguidelines-avoid-goto,\
-cppcoreguidelines-no-malloc'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment