Henri Chataing | f06e42b | 2021-07-28 16:16:05 +0000 | [diff] [blame^] | 1 | --- |
| 2 | Checks: > |
| 3 | clang-diagnostic-*, |
| 4 | -clang-analyzer-*, |
| 5 | modernize-*, |
| 6 | -modernize-avoid-c-arrays, |
| 7 | -modernize-concat-nested-namespaces, |
| 8 | -modernize-deprecated-headers, |
| 9 | -modernize-loop-convert, |
| 10 | -modernize-pass-by-value, |
| 11 | -modernize-raw-string-literal, |
| 12 | -modernize-redundant-void-arg, |
| 13 | -modernize-return-braced-init-list, |
| 14 | -modernize-unary-static-assert, |
| 15 | -modernize-use-auto, |
| 16 | -modernize-use-bool-literals, |
| 17 | -modernize-use-default-member-init, |
| 18 | -modernize-use-emplace, |
| 19 | -modernize-use-equals-default, |
| 20 | -modernize-use-nodiscard, |
| 21 | -modernize-use-override, |
| 22 | -modernize-use-trailing-return-type, |
| 23 | -modernize-use-using, |
| 24 | WarningsAsErrors: > |
| 25 | *, |
| 26 | -clang-diagnostic-unused-command-line-argument |
| 27 | HeaderFilterRegex: '.*' |
| 28 | ... |
| 29 | |
| 30 | # Disable checks: |
| 31 | # |
| 32 | # clang-analyzer-*: |
| 33 | # The clang static analyzer checks take too much time to be |
| 34 | # run as part of the presubmit checks; the static analysis is |
| 35 | # instead performed by the 'static_analysis' step in |
| 36 | # 'other_checks' |
| 37 | # |
| 38 | # performance-* |
| 39 | # bugprone-* |
| 40 | # cert-* |
| 41 | # misc-* |
| 42 | # readability-* |
| 43 | # |
| 44 | # Checks marked with @ should be reenabled first |
| 45 | # (the effort is minimal). |
| 46 | # |
| 47 | # modernize-avoid-c-arrays: |
| 48 | # @ modernize-concat-nested-namespaces: |
| 49 | # Note: added in c++17 |
| 50 | # modernize-deprecated-headers: |
| 51 | # Advises to use <cheader> instead of <header.h> for |
| 52 | # legacy headers |
| 53 | # modernize-loop-convert: |
| 54 | # @ modernize-pass-by-value: |
| 55 | # @ modernize-raw-string-literal: |
| 56 | # Note: added in c++11 |
| 57 | # @ modernize-redundant-void-arg: |
| 58 | # modernize-return-braced-init-list: |
| 59 | # @ modernize-unary-static-assert: |
| 60 | # Note: added in c++17 |
| 61 | # The message argument can be omitted when it is empty |
| 62 | # @ modernize-use-auto: |
| 63 | # Advises to use auto when initializing with a cast to |
| 64 | # avoid duplicating the type name |
| 65 | # @ modernize-use-bool-literals: |
| 66 | # modernize-use-default-member-init: |
| 67 | # Note: added in c++11 |
| 68 | # Advises to use a default initializer in |
| 69 | # member declarations |
| 70 | # @ modernize-use-emplace: |
| 71 | # @ modernize-use-equals-default: |
| 72 | # Note: added in c++11 |
| 73 | # Advises to use '= default' for empty constructors or |
| 74 | # destructors '{}' |
| 75 | # modernize-use-nodiscard: |
| 76 | # Note: added in c++17 |
| 77 | # @ modernize-use-override: |
| 78 | # modernize-use-trailing-return-type: |
| 79 | # Note: added in c++11 |
| 80 | # Used to delay the writing of the return type |
| 81 | # to after the function parameters; does not make |
| 82 | # sense to generalise its use. |
| 83 | # modernize-use-using: |
| 84 | # Note: added in c++11 |
| 85 | # Advises to use 'using' instead of 'typedef' |