Skip to content

Instantly share code, notes, and snippets.

@flamewing
Last active April 23, 2023 10:47
Show Gist options
  • Save flamewing/a5016645064afa086ac8afd98ea7f627 to your computer and use it in GitHub Desktop.
Save flamewing/a5016645064afa086ac8afd98ea7f627 to your computer and use it in GitHub Desktop.
A .clang-tidy file with some good default checks
Checks: '-*,bugprone-*,cert-dcl21-cpp,cert-dcl50-cpp,cert-env33-c,cert-err34-c,cert-err52-cpp,cert-err60-cpp,cert-flp30-c,cert-msc50-cpp,cert-msc51-cpp,cppcoreguidelines-*,-cppcoreguidelines-macro-usage,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-union-access,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-vararg,google-build-using-namespace,google-explicit-constructor,google-global-names-in-headers,google-readability-casting,google-runtime-int,google-runtime-operator,hicpp-*,-hicpp-vararg,misc-*,modernize-*,performance-*,readability-*,-readability-named-parameter'
CheckOptions:
- key: bugprone-argument-comment.StrictMode
value: 1
- key: bugprone-exception-escape.FunctionsThatShouldNotThrow
value: WinMain,SDL_main
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: 1
FormatStyle: 'file'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment