|
| 1 | +Checks: "-*,bugprone-*,\ |
| 2 | +-readability-*,\ |
| 3 | +readability-identifier-*,\ |
| 4 | +readability-redundant-member-init,\ |
| 5 | +readability-braces-around-statements,\ |
| 6 | +cert-dcl*,\ |
| 7 | +cert-env*,\ |
| 8 | +cert-err52-cpp,\ |
| 9 | +cert-err60-cpp,\ |
| 10 | +cert-flp30-c,\ |
| 11 | +clang-analyzer-*,\ |
| 12 | +clang-analyzer-security.FloatLoopCounter,\ |
| 13 | +google-build-explicit-make-pair,\ |
| 14 | +google-build-namespaces,\ |
| 15 | +google-explicit-constructor,\ |
| 16 | +google-readability-*,\ |
| 17 | +google-runtime-operator,\ |
| 18 | +hicpp-exception-baseclass,\ |
| 19 | +hicpp-explicit-conversions,\ |
| 20 | +hicpp-use-*,\ |
| 21 | +modernize-avoid-bind,\ |
| 22 | +modernize-loop-convert,\ |
| 23 | +modernize-make-shared,\ |
| 24 | +modernize-make-unique,\ |
| 25 | +modernize-redundant-void-arg,\ |
| 26 | +modernize-replace-random-shuffle,\ |
| 27 | +modernize-shrink-to-fit,\ |
| 28 | +modernize-use-bool-literals,\ |
| 29 | +modernize-use-default-member-init,\ |
| 30 | +modernize-use-emplace,\ |
| 31 | +modernize-use-equals-default,\ |
| 32 | +modernize-use-equals-delete,\ |
| 33 | +modernize-use-noexcept,\ |
| 34 | +modernize-use-nullptr,\ |
| 35 | +modernize-use-override,\ |
| 36 | +modernize-use-transparent-functors,\ |
| 37 | +misc-*,\ |
| 38 | +-misc-misplaced-widening-cast,\ |
| 39 | +-misc-no-recursion,\ |
| 40 | +performance-*" |
| 41 | + |
| 42 | +WarningsAsErrors: '*' |
| 43 | +HeaderFilterRegex: '.*' |
| 44 | + |
| 45 | +CheckOptions: |
| 46 | + # Configuration documentation: https://clang.llvm.org/extra/clang-tidy/checks/readability-identifier-naming.html |
| 47 | + # Namespaces |
| 48 | + - key: readability-identifier-naming.NamespaceCase |
| 49 | + value: 'lower_case' |
| 50 | + |
| 51 | + # Classes and structs |
| 52 | + - key: readability-identifier-naming.AbstractClassPrefix |
| 53 | + value: 'I' |
| 54 | + - key: readability-identifier-naming.ClassCase |
| 55 | + value: 'CamelCase' |
| 56 | + - key: readability-identifier-naming.StructCase |
| 57 | + value: 'CamelCase' |
| 58 | + - key: readability-identifier-naming.UnionCase |
| 59 | + value: 'CamelCase' |
| 60 | + |
| 61 | + # Class members |
| 62 | + - key: readability-identifier-naming.PrivateMemberCase |
| 63 | + value: 'lower_case' |
| 64 | + - key: readability-identifier-naming.PrivateMemberSuffix |
| 65 | + value: '_' |
| 66 | + - key: readability-identifier-naming.ProtectedMemberCase |
| 67 | + value: 'lower_case' |
| 68 | + - key: readability-identifier-naming.ProtectedMemberSuffix |
| 69 | + value: '_' |
| 70 | + |
| 71 | + # Type Alias and Enum Types / constants |
| 72 | + - key: readability-identifier-naming.TypeAliasCase |
| 73 | + value: 'CamelCase' |
| 74 | + - key: readability-identifier-naming.TypedefCase |
| 75 | + value: 'CamelCase' |
| 76 | + - key: readability-identifier-naming.EnumCase |
| 77 | + value: 'CamelCase' |
| 78 | + - key: readability-identifier-naming.EnumConstantCase |
| 79 | + value: 'CamelCase' |
| 80 | + |
| 81 | + # Globals, consts and enums |
| 82 | + - key: readability-identifier-naming.GlobalConstantCase |
| 83 | + value: 'UPPER_CASE' |
| 84 | + - key: readability-identifier-naming.GlobalConstantPrefix |
| 85 | + value: 'G_' |
| 86 | + - key: readability-identifier-naming.ConstantCase |
| 87 | + value: 'UPPER_CASE' |
| 88 | + |
| 89 | + # Functions |
| 90 | + - key: readability-identifier-naming.FunctionCase |
| 91 | + value: 'camelBack' |
| 92 | + - key: readability-identifier-naming.IgnoreMainLikeFunctions |
| 93 | + value: true |
| 94 | + |
| 95 | + # Variables and parameters |
| 96 | + - key: readability-identifier-naming.VariableCase |
| 97 | + value: 'lower_case' |
| 98 | + - key: readability-identifier-naming.LocalVariableCase |
| 99 | + value: 'lower_case' |
| 100 | + - key: readability-identifier-naming.ParameterCase |
| 101 | + value: 'lower_case' |
| 102 | + |
| 103 | + # Macros |
| 104 | + - key: readability-identifier-naming.MacroDefinitionCase |
| 105 | + value: 'UPPER_CASE' |
0 commit comments