Skip to content

Instantly share code, notes, and snippets.

@LazyRen
Created July 6, 2023 03:22
Show Gist options
  • Save LazyRen/fb21b9cc890d10d051f517ce67415cc8 to your computer and use it in GitHub Desktop.
Save LazyRen/fb21b9cc890d10d051f517ce67415cc8 to your computer and use it in GitHub Desktop.
CompileFlags:
Add: -ferror-limit=0
InlayHints:
Designators: Yes
Enabled: Yes
ParameterNames: Yes
DeducedTypes: Yes
Diagnostics:
ClangTidy:
Add: [
bugprone-*,
cppcoreguidelines-*,
misc-misplaced-const,
misc-redundant-expression,
misc-static-assert,
misc-throw-by-value-catch-by-reference,
misc-unconventional-assign-operator,
misc-unused-parameters,
misc-use-anonymous-namespace,
modernize-*,
performance-*,
readability-*,
]
CheckOptions:
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
value: True
- key: cppcoreguidelines-special-member-functions.AllowMissingMoveFunctionsWhenCopyIsDeleted
value: True
Remove: [
bugprone-easily-swappable-parameters,
cppcoreguidelines-avoid-c-arrays,
cppcoreguidelines-avoid-do-while,
cppcoreguidelines-avoid-goto,
cppcoreguidelines-avoid-non-const-global-variables,
cppcoreguidelines-non-private-member-variables-in-classes,
cppcoreguidelines-owning-memory,
cppcoreguidelines-pro-bounds-array-to-pointer-decay,
cppcoreguidelines-pro-bounds-constant-array-index,
cppcoreguidelines-pro-bounds-pointer-arithmetic,
modernize-avoid-c-arrays,
modernize-use-nodiscard,
modernize-use-trailing-return-type,
performance-noexcept-move-constructor,
readability-convert-member-functions-to-static,
readability-function-cognitive-complexity,
readability-identifier-length,
readability-implicit-bool-conversion,
readability-named-parameter,
readability-simplify-boolean-expr,
]
Suppress:
-Wdeprecated-builtins,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment