2022-10-17 04:30:13 +08:00
|
|
|
Checks: >
|
2023-02-03 14:31:48 +08:00
|
|
|
bugprone-*,
|
2022-10-17 04:30:13 +08:00
|
|
|
clang-analyzer-*,
|
2023-10-18 00:02:18 +08:00
|
|
|
cppcoreguidelines-*,
|
2023-01-16 14:14:02 +08:00
|
|
|
misc-*,
|
2023-01-16 04:13:20 +08:00
|
|
|
modernize-*,
|
2024-01-15 04:25:30 +08:00
|
|
|
objc-*,
|
2023-04-09 02:51:35 +08:00
|
|
|
performance-*,
|
2023-01-16 13:42:32 +08:00
|
|
|
portability-*,
|
2023-01-23 04:51:07 +08:00
|
|
|
readability-*,
|
2023-02-03 14:31:48 +08:00
|
|
|
-bugprone-assignment-in-if-condition,
|
|
|
|
-bugprone-branch-clone,
|
2024-04-23 10:47:05 +08:00
|
|
|
-bugprone-casting-through-void,
|
2023-02-03 14:31:48 +08:00
|
|
|
-bugprone-easily-swappable-parameters,
|
|
|
|
-bugprone-exception-escape,
|
|
|
|
-bugprone-implicit-widening-of-multiplication-result,
|
|
|
|
-bugprone-integer-division,
|
|
|
|
-bugprone-misplaced-widening-cast,
|
|
|
|
-bugprone-narrowing-conversions,
|
|
|
|
-bugprone-signed-char-misuse,
|
|
|
|
-bugprone-string-integer-assignment,
|
2023-09-23 03:03:27 +08:00
|
|
|
-bugprone-switch-missing-default-case,
|
2023-02-03 14:31:48 +08:00
|
|
|
-bugprone-unchecked-optional-access,
|
2022-10-17 04:30:13 +08:00
|
|
|
-clang-analyzer-nullability.NullablePassedToNonnull,
|
2024-04-23 10:47:05 +08:00
|
|
|
-clang-analyzer-optin.core.EnumCastOutOfRange,
|
2022-10-17 04:30:13 +08:00
|
|
|
-clang-analyzer-optin.cplusplus.VirtualCall,
|
|
|
|
-clang-analyzer-optin.osx.*,
|
|
|
|
-clang-analyzer-osx.*,
|
|
|
|
-clang-analyzer-unix.Malloc,
|
2023-10-18 00:02:18 +08:00
|
|
|
-cppcoreguidelines-avoid-c-arrays,
|
|
|
|
-cppcoreguidelines-avoid-const-or-ref-data-members,
|
|
|
|
-cppcoreguidelines-avoid-do-while,
|
|
|
|
-cppcoreguidelines-avoid-magic-numbers,
|
|
|
|
-cppcoreguidelines-avoid-non-const-global-variables,
|
2024-04-23 10:47:05 +08:00
|
|
|
-cppcoreguidelines-macro-to-enum,
|
2023-10-18 00:02:18 +08:00
|
|
|
-cppcoreguidelines-macro-usage,
|
|
|
|
-cppcoreguidelines-narrowing-conversions,
|
|
|
|
-cppcoreguidelines-non-private-member-variables-in-classes,
|
|
|
|
-cppcoreguidelines-owning-memory,
|
|
|
|
-cppcoreguidelines-prefer-member-initializer,
|
|
|
|
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
|
|
|
|
-cppcoreguidelines-pro-bounds-constant-array-index,
|
|
|
|
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
|
|
|
|
-cppcoreguidelines-pro-type-const-cast,
|
|
|
|
-cppcoreguidelines-pro-type-reinterpret-cast,
|
|
|
|
-cppcoreguidelines-pro-type-static-cast-downcast,
|
|
|
|
-cppcoreguidelines-pro-type-union-access,
|
|
|
|
-cppcoreguidelines-pro-type-vararg,
|
|
|
|
-cppcoreguidelines-rvalue-reference-param-not-moved,
|
|
|
|
-cppcoreguidelines-special-member-functions,
|
2023-09-23 03:03:27 +08:00
|
|
|
-misc-include-cleaner,
|
2023-01-16 14:14:02 +08:00
|
|
|
-misc-misplaced-const,
|
|
|
|
-misc-no-recursion,
|
|
|
|
-misc-non-private-member-variables-in-classes,
|
2023-01-16 04:13:20 +08:00
|
|
|
-modernize-avoid-c-arrays,
|
|
|
|
-modernize-macro-to-enum,
|
|
|
|
-modernize-use-trailing-return-type,
|
2023-09-23 03:03:27 +08:00
|
|
|
-performance-avoid-endl,
|
2024-04-23 10:47:05 +08:00
|
|
|
-performance-enum-size,
|
2023-04-09 02:51:35 +08:00
|
|
|
-performance-inefficient-string-concatenation,
|
|
|
|
-performance-no-int-to-ptr,
|
2024-04-23 10:47:05 +08:00
|
|
|
-readability-avoid-nested-conditional-operator,
|
2023-01-19 00:27:17 +08:00
|
|
|
-readability-braces-around-statements,
|
2023-01-23 04:51:07 +08:00
|
|
|
-readability-convert-member-functions-to-static,
|
2023-01-19 00:27:17 +08:00
|
|
|
-readability-function-cognitive-complexity,
|
2023-01-23 04:51:07 +08:00
|
|
|
-readability-function-size,
|
|
|
|
-readability-identifier-length,
|
|
|
|
-readability-implicit-bool-conversion,
|
2023-01-19 00:27:17 +08:00
|
|
|
-readability-magic-numbers,
|
2023-01-23 04:51:07 +08:00
|
|
|
-readability-named-parameter,
|
2024-04-23 10:47:05 +08:00
|
|
|
-readability-redundant-casting,
|
2023-01-23 04:51:07 +08:00
|
|
|
-readability-uppercase-literal-suffix,
|
2022-10-18 08:44:31 +08:00
|
|
|
CheckOptions:
|
|
|
|
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
|
|
|
|
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
|
2022-10-24 06:53:36 +08:00
|
|
|
- { key: readability-identifier-naming.VariableCase, value: camelBack }
|
2022-10-24 05:17:57 +08:00
|
|
|
- { key: readability-identifier-naming.ParameterCase, value: camelBack }
|
2023-10-29 16:25:38 +08:00
|
|
|
- { key: readability-identifier-naming.MemberCase, value: camelBack }
|
|
|
|
- { key: readability-identifier-naming.PrivateMemberCase, value: camelBack }
|
|
|
|
- { key: readability-identifier-naming.ProtectedMemberPrefix, value: m_ }
|
|
|
|
- { key: readability-identifier-naming.PrivateMemberPrefix, value: m_ }
|
2022-10-17 04:30:13 +08:00
|
|
|
HeaderFilterRegex: '.*'
|
|
|
|
WarningsAsErrors: '*'
|
2023-01-14 08:16:42 +08:00
|
|
|
UseColor: true
|