mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
Enables most of checks provided by clang-tidy, with checks that do not fit us excluded. The table containing naming conventions was using wrong values, that was fixed and now tidy correctly warns and fixes naming convention issues Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
33 lines
1.8 KiB
YAML
33 lines
1.8 KiB
YAML
FormatStyle: file
|
|
|
|
Checks:
|
|
'bugprone-*,clang-analyzer-*,cppcoreguidelines-*,hicpp-*,misc-*,modernize-*,performance-*,portability-*,readability-*,
|
|
-*-magic-numbers,
|
|
-*-non-private-member-variables-in-classes,
|
|
-*-special-member-functions,
|
|
-bugprone-easily-swappable-parameters,
|
|
-cppcoreguidelines-owning-memory,
|
|
-cppcoreguidelines-pro-type-static-cast-downcast,
|
|
-modernize-use-nodiscard,
|
|
-modernize-use-trailing-return-type,
|
|
-portability-avoid-pragma-once,
|
|
-readability-avoid-unconditional-preprocessor-if,
|
|
-readability-function-cognitive-complexity,
|
|
-readability-identifier-length,
|
|
-readability-redundant-access-specifiers'
|
|
|
|
CheckOptions:
|
|
- { key: misc-include-cleaner.MissingIncludes, value: false }
|
|
- { key: readability-identifier-naming.DefaultCase, value: camelBack }
|
|
- { key: readability-identifier-naming.NamespaceCase, value: CamelCase }
|
|
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
|
|
- { key: readability-identifier-naming.ClassConstantCase, value: CamelCase }
|
|
- { key: readability-identifier-naming.EnumCase, value: CamelCase }
|
|
- { key: readability-identifier-naming.EnumConstantCase, value: CamelCase }
|
|
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
|
|
- { key: readability-identifier-naming.ClassMemberPrefix, value: m_ }
|
|
- { key: readability-identifier-naming.StaticConstantPrefix, value: s_ }
|
|
- { key: readability-identifier-naming.StaticVariablePrefix, value: s_ }
|
|
- { key: readability-identifier-naming.GlobalConstantPrefix, value: g_ }
|
|
- { key: readability-implicit-bool-conversion.AllowPointerConditions, value: true }
|