Nan Zhou | e3d47cd | 2022-09-16 03:41:53 +0000 | [diff] [blame] | 1 | Checks: ' |
| 2 | -*, |
Jayanth Othayoth | b662bec | 2024-12-05 02:17:03 -0600 | [diff] [blame] | 3 | bugprone-*, |
| 4 | -bugprone-assignment-in-if-condition, |
| 5 | -bugprone-easily-swappable-parameters, |
| 6 | -bugprone-exception-escape, |
| 7 | cert-*, |
| 8 | -cert-err33-c, |
| 9 | -cert-err58-cpp, |
| 10 | clang-analyzer-*, |
| 11 | -clang-analyzer-optin.*, |
| 12 | -clang-analyzer-osx.*, |
| 13 | -clang-analyzer-webkit.*, |
| 14 | -clang-analyzer-apiModeling.StdCLibraryFunctions, |
| 15 | -clang-analyzer-optin.cplusplus.VirtualCall, |
| 16 | cppcoreguideline-*, |
| 17 | -cppcoreguidelines-avoid-c-arrays, |
| 18 | -cppcoreguidelines-avoid-non-const-global-variables, |
| 19 | -cppcoreguidelines-explicit-virtual-functions, |
| 20 | -cppcoreguidelines-no-malloc, |
| 21 | -cppcoreguidelines-pro-bounds-array-to-pointer-decay, |
| 22 | -cppcoreguidelines-pro-bounds-pointer-arithmetic, |
| 23 | -cppcoreguidelines-pro-type-reinterpret-cast, |
| 24 | -cppcoreguidelines-pro-type-vararg, |
| 25 | misc-*, |
| 26 | -misc-const-correctness, |
| 27 | -misc-include-cleaner, |
| 28 | -misc-non-private-member-variables-in-classes, |
| 29 | -misc-use-internal-linkage, |
| 30 | modernize-*, |
| 31 | -modernize-avoid-c-arrays, |
| 32 | -modernize-concat-nested-namespaces, |
| 33 | -modernize-pass-by-value, |
| 34 | -modernize-use-auto, |
| 35 | -modernize-use-override, |
| 36 | -modernize-use-ranges, |
| 37 | -modernize-use-trailing-return-type, |
| 38 | performance-*, |
| 39 | -performance-avoid-endl, |
| 40 | -performance-enum-size, |
| 41 | -performance-inefficient-string-concatenation, |
| 42 | -performance-inefficient-vector-operation, |
| 43 | -performance-move-const-arg, |
| 44 | -performance-unnecessary-value-param, |
| 45 | readability-*, |
| 46 | -readability-avoid-const-params-in-decls, |
| 47 | -readability-braces-around-statements, |
| 48 | -readability-container-data-pointer, |
| 49 | -readability-convert-member-functions-to-static, |
| 50 | -readability-else-after-return, |
| 51 | -readability-function-cognitive-complexity, |
| 52 | -readability-identifier-length, |
| 53 | -readability-implicit-bool-conversion, |
| 54 | -readability-make-member-function-const, |
| 55 | -readability-qualified-auto, |
| 56 | -readability-redundant-inline-specifier, |
| 57 | -readability-simplify-boolean-expr, |
| 58 | -readability-uppercase-literal-suffix, |
| 59 | ' |
Nan Zhou | e3d47cd | 2022-09-16 03:41:53 +0000 | [diff] [blame] | 60 | |
Jayanth Othayoth | b662bec | 2024-12-05 02:17:03 -0600 | [diff] [blame] | 61 | # Treat all warnings as errors |
Nan Zhou | e3d47cd | 2022-09-16 03:41:53 +0000 | [diff] [blame] | 62 | WarningsAsErrors: '*' |
Nan Zhou | e3d47cd | 2022-09-16 03:41:53 +0000 | [diff] [blame] | 63 | |
Jayanth Othayoth | b662bec | 2024-12-05 02:17:03 -0600 | [diff] [blame] | 64 | # Apply checks to all files |
| 65 | HeaderFilterRegex: '.*' |
Nan Zhou | e3d47cd | 2022-09-16 03:41:53 +0000 | [diff] [blame] | 66 | CheckOptions: |
Jayanth Othayoth | b662bec | 2024-12-05 02:17:03 -0600 | [diff] [blame] | 67 | - { key: readability-identifier-naming.ClassCase, value: CamelCase } |
| 68 | - { key: readability-identifier-naming.EnumCase, value: CamelCase } |
| 69 | - { key: readability-identifier-naming.EnumConstantCase, value: camelBack } |
| 70 | - { key: readability-identifier-naming.FunctionCase, value: camelBack } |
| 71 | - { key: readability-identifier-naming.NamespaceCase, value: lower_case } |
| 72 | - { key: readability-identifier-naming.ParameterCase, value: camelBack } |
| 73 | - { key: readability-identifier-naming.StructCase, value: CamelCase } |
| 74 | - { key: readability-identifier-naming.VariableCase, value: camelBack } |
| 75 | |
| 76 | # Disable automatic formatting |
| 77 | FormatStyle: none |