blob: 10f27f397d101512b2739f0497112b7ef7cab296 [file] [log] [blame]
Henri Chataingf06e42b2021-07-28 16:16:05 +00001---
2Checks: >
Ted Pudlik6d642e42021-10-25 22:44:37 +00003 bugprone-argument-comment,
Ted Pudlik17d5e712021-10-25 20:43:54 +00004 bugprone-assert-side-effect,
5 bugprone-bool-pointer-implicit-conversion,
6 bugprone-dangling-handle,
Ted Pudlik6d642e42021-10-25 22:44:37 +00007 bugprone-fold-init-type,
Ted Pudlik17d5e712021-10-25 20:43:54 +00008 bugprone-forward-declaration-namespace,
9 bugprone-inaccurate-erase,
10 bugprone-macro-repeated-side-effects,
Ted Pudlik6d642e42021-10-25 22:44:37 +000011 bugprone-move-forwarding-reference,
Ted Pudlik17d5e712021-10-25 20:43:54 +000012 bugprone-multiple-statement-macro,
Ted Pudlik6d642e42021-10-25 22:44:37 +000013 bugprone-string-constructor,
Ted Pudlik17d5e712021-10-25 20:43:54 +000014 bugprone-suspicious-memset-usage,
15 bugprone-swapped-arguments,
16 bugprone-undefined-memory-manipulation,
17 bugprone-undelegated-constructor,
18 bugprone-unused-raii,
Ted Pudlik6d642e42021-10-25 22:44:37 +000019 bugprone-use-after-move,
Henri Chataingf06e42b2021-07-28 16:16:05 +000020 clang-diagnostic-*,
21 -clang-analyzer-*,
Ted Pudlik17d5e712021-10-25 20:43:54 +000022 darwin-avoid-spinlock,
23 google-build-explicit-make-pair,
24 google-build-namespaces,
25 google-default-arguments,
Ted Pudlike480df92021-11-09 22:14:10 +000026 google-global-names-in-headers,
Ted Pudlik17d5e712021-10-25 20:43:54 +000027 google-readability-function-size,
28 google-readability-namespace-comments,
29 google-runtime-operator,
30 misc-static-assert,
31 misc-unconventional-assign-operator,
Ted Pudlik585a0c52021-10-27 21:06:11 +000032 misc-unused-using-decls,
Ted Pudlikc8b15bf2022-02-09 01:31:40 +000033 modernize-avoid-bind,
34 modernize-deprecated-ios-base-aliases,
35 modernize-make-shared,
36 modernize-make-unique,
37 modernize-replace-auto-ptr,
38 modernize-replace-disallow-copy-and-assign-macro,
39 modernize-replace-random-shuffle,
40 modernize-shrink-to-fit,
41 modernize-use-bool-literals,
42 modernize-use-equals-delete,
43 modernize-use-noexcept,
44 modernize-use-nullptr,
45 modernize-use-transparent-functors,
46 modernize-use-uncaught-exceptions,
Ted Pudlik17d5e712021-10-25 20:43:54 +000047 performance-faster-string-find,
48 performance-for-range-copy,
49 performance-implicit-conversion-in-loop,
50 performance-inefficient-algorithm,
51 performance-inefficient-vector-operation,
52 performance-move-constructor-init,
Ted Pudlik10ec2bd2021-10-27 21:17:09 +000053 readability-container-size-empty,
Ted Pudlik4180d4d2021-10-28 00:07:29 +000054 readability-inconsistent-declaration-parameter-name,
Ted Pudlik17d5e712021-10-25 20:43:54 +000055 readability-misleading-indentation,
56 readability-redundant-control-flow,
57 readability-redundant-smartptr-get,
58 readability-string-compare,
Henri Chataingf06e42b2021-07-28 16:16:05 +000059WarningsAsErrors: >
60 *,
61 -clang-diagnostic-unused-command-line-argument
62HeaderFilterRegex: '.*'
63...
64
Ted Pudlik36986c02021-10-20 23:45:14 +000065# Disabled checks:
Henri Chataingf06e42b2021-07-28 16:16:05 +000066#
67# clang-analyzer-*:
Henri Chataingf06e42b2021-07-28 16:16:05 +000068#
69# performance-*
70# bugprone-*
71# cert-*
72# misc-*
73# readability-*
74#
75# Checks marked with @ should be reenabled first
76# (the effort is minimal).
77#
78# modernize-avoid-c-arrays:
79# @ modernize-concat-nested-namespaces:
80# Note: added in c++17
81# modernize-deprecated-headers:
82# Advises to use <cheader> instead of <header.h> for
83# legacy headers
84# modernize-loop-convert:
85# @ modernize-pass-by-value:
86# @ modernize-raw-string-literal:
87# Note: added in c++11
88# @ modernize-redundant-void-arg:
89# modernize-return-braced-init-list:
90# @ modernize-unary-static-assert:
91# Note: added in c++17
92# The message argument can be omitted when it is empty
93# @ modernize-use-auto:
94# Advises to use auto when initializing with a cast to
95# avoid duplicating the type name
Henri Chataingf06e42b2021-07-28 16:16:05 +000096# modernize-use-default-member-init:
97# Note: added in c++11
98# Advises to use a default initializer in
99# member declarations
100# @ modernize-use-emplace:
101# @ modernize-use-equals-default:
102# Note: added in c++11
103# Advises to use '= default' for empty constructors or
104# destructors '{}'
105# modernize-use-nodiscard:
106# Note: added in c++17
107# @ modernize-use-override:
108# modernize-use-trailing-return-type:
109# Note: added in c++11
110# Used to delay the writing of the return type
111# to after the function parameters; does not make
112# sense to generalise its use.
113# modernize-use-using:
114# Note: added in c++11
115# Advises to use 'using' instead of 'typedef'