• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2# Note on checks are disabled on purpose
3#
4# - abseil-no-namespace
5#   https://bugs.llvm.org/show_bug.cgi?id=47947
6#
7# - bugprone-reserved-identifier
8#   Some macros need to be defined for portability purpose; e.g. _BSD_SOURCE.
9#
10# - google-upgrade-googletest-case
11#   This requires googletest 1.10 which is higher than ones installed on many linux distributions.
12#
13# - modernize-redundant-void-arg
14#   Some source should be strictly C99 and func(void) should be used.
15#
16# Note on checks which will be enabled in future. These are good to have but
17# it's not activated yet due to the existing issues with the checks.
18# Once those issues are clear, these checks can be enabled later.
19#
20# - bugprone-branch-clone
21# - bugprone-infinite-loop
22# - bugprone-narrowing-conversions
23# - bugprone-not-null-terminated-result
24# - bugprone-signed-char-misuse
25# - bugprone-sizeof-expression
26# - bugprone-too-small-loop-variable
27# - clang-diagnostic-deprecated-declarations
28# - clang-diagnostic-unused-function
29# - google-readability-avoid-underscore-in-googletest-name
30# - google-runtime-int
31# - google-runtime-references
32# - modernize-avoid-bind
33# - modernize-deprecated-headers
34# - modernize-loop-convert
35# - modernize-pass-by-value
36# - modernize-raw-string-literal
37# - modernize-return-braced-init-list
38# - modernize-use-auto
39# - modernize-use-default-member-init
40# - modernize-use-emplace
41# - modernize-use-equals-default
42# - modernize-use-equals-delete
43# - modernize-use-using
44# - performance-no-automatic-move
45# - performance-unnecessary-copy-initialization
46# - performance-unnecessary-value-param
47# - readability-else-after-return
48# - readability-implicit-bool-conversion
49# - readability-redundant-declaration
50# - readability-static-definition-in-anonymous-namespace
51#
52Checks: '-*,
53  abseil-*,
54  -abseil-no-namespace,
55  bugprone-*,
56  -bugprone-branch-clone,
57  -bugprone-infinite-loop,
58  -bugprone-narrowing-conversions,
59  -bugprone-not-null-terminated-result,
60  -bugprone-reserved-identifier,
61  -bugprone-signed-char-misuse,
62  -bugprone-sizeof-expression,
63  -bugprone-too-small-loop-variable,
64  google-*,
65  -google-readability-avoid-underscore-in-googletest-name,
66  -google-runtime-int,
67  -google-runtime-references,
68  -google-upgrade-googletest-case,
69  performance-*,
70  -performance-no-automatic-move,
71  -performance-unnecessary-copy-initialization,
72  -performance-unnecessary-value-param,
73  clang-diagnostic-deprecated-register,
74  clang-diagnostic-expansion-to-defined,
75  clang-diagnostic-ignored-attributes,
76  clang-diagnostic-non-pod-varargs,
77  clang-diagnostic-shadow-field,
78  clang-diagnostic-shift-sign-overflow,
79  clang-diagnostic-tautological-undefined-compare,
80  clang-diagnostic-thread-safety*,
81  clang-diagnostic-undefined-bool-conversion,
82  clang-diagnostic-unreachable-code,
83  clang-diagnostic-unreachable-code-loop-increment,
84  clang-diagnostic-unused-const-variable,
85  clang-diagnostic-unused-lambda-capture,
86  clang-diagnostic-unused-local-typedef,
87  clang-diagnostic-unused-private-field,
88  clang-diagnostic-user-defined-warnings,
89  misc-definitions-in-headers,
90  misc-static-assert,
91  misc-unconventional-assign-operator,
92  misc-uniqueptr-reset-release,
93  misc-unused-alias-decls,
94  misc-unused-using-decls,
95  modernize-make-shared,
96  modernize-make-unique,
97  modernize-replace-auto-ptr,
98  modernize-replace-random-shuffle,
99  modernize-shrink-to-fit,
100  modernize-unary-static-assert,
101  modernize-use-bool-literals,
102  modernize-use-noexcept,
103  modernize-use-nullptr,
104  modernize-use-override,
105  modernize-use-transparent-functors,
106  readability-const-return-type,
107  readability-container-size-empty,
108  readability-delete-null-pointer,
109  readability-deleted-default,
110  readability-function-size,
111  readability-inconsistent-declaration-parameter-name,
112  readability-misleading-indentation,
113  readability-misplaced-array-index,
114  readability-redundant-control-flow,
115  readability-redundant-function-ptr-dereference,
116  readability-redundant-smartptr-get,
117  readability-simplify-boolean-expr,
118  readability-string-compare,
119  readability-uniqueptr-delete-release'
120WarningsAsErrors: '*'
121CheckOptions:
122  - key:    readability-function-size.StatementThreshold
123    value:  '450'
124  - key:    modernize-make-unique.MakeSmartPtrFunction
125    value:  'absl::make_unique'
126  - key:    modernize-make-unique.MakeSmartPtrFunctionHeader
127    value:  'absl/memory/memory.h'
128  - key:    google-readability-braces-around-statements.ShortStatementLines
129    value:  1
130