2 # - modernize-deprecated-headers: We don't use std:: versions of the standard
3 # types and functions like size_t or printf, so we should include <stdio.h>
5 # - modernize-return-braced-init-list: this often doesn't improve readability.
6 # - modernize-use-auto: is too aggressive towards using auto.
7 # - modernize-use-default-member-init: with a mix of constructors and default
8 # member initialization this can be confusing if enforced.
9 # - modernize-use-trailing-return-type: does not improve readability when used
11 # - modernize-use-using: typedefs are ok.
13 # - readability-else-after-return: It doesn't always improve readability.
14 # - readability-static-accessed-through-instance
15 # It is often more useful and readable to access a constant of a passed
16 # variable (like d.N) instead of using the type of the variable that could be
18 # - readability-uppercase-literal-suffix: we write 1.0f, not 1.0F.
23 -clang-diagnostic-unused-command-line-argument,
28 -modernize-deprecated-headers,
29 -modernize-return-braced-init-list,
31 -modernize-use-default-member-init,
32 -modernize-use-trailing-return-type,
34 -readability-else-after-return,
35 -readability-function-cognitive-complexity,
36 -readability-static-accessed-through-instance,
37 -readability-uppercase-literal-suffix,
41 bugprone-argument-comment,
42 bugprone-macro-parentheses,
43 bugprone-suspicious-string-compare,
44 bugprone-use-after-move,
47 -clang-diagnostic-unused-command-line-argument,
48 google-build-using-namespace,
49 google-explicit-constructor,
50 google-readability-braces-around-statements,
51 google-readability-namespace-comments,
52 modernize-use-override,
53 readability-inconsistent-declaration-parameter-name
55 # We are only interested in the headers from this projects, excluding
56 # third_party/ and build/.
57 HeaderFilterRegex: '^.*/(lib|tools)/.*\.h$'
60 - key: readability-braces-around-statements.ShortStatementLines
62 - key: google-readability-braces-around-statements.ShortStatementLines
64 - key: readability-implicit-bool-conversion.AllowPointerConditions
66 - key: readability-implicit-bool-conversion.AllowIntegerConditions