-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-tidy
135 lines (135 loc) · 8.49 KB
/
.clang-tidy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
---
Checks: "\
boost-*,\
bugprone-*,\
cert-*,\
clang-analyzer-*,\
clang-diagnostic-*,\
concurrency-*,\
cppcoreguidelines-*,\
google-*,\
hicpp-*,\
llvm-*,\
misc-*,\
modernize-*,\
performance-*,\
portability-*,\
readability-*,\
fuchsia-multiple-inheritance,\
fuchsia-trailing-return,\
fuchsia-virtual-inheritance,\
google-runtime-int,\
-hicpp-braces-around-statements,\
-google-readability-braces-around-statements,\
-llvm-header-guard,\
-hicpp-no-array-decay,\
-modernize-concat-nested-namespaces,\
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,\
-modernize-use-trailing-return-type,\
-cppcoreguidelines-owning-memory,\
-hicpp-named-parameter,\
-readability-named-parameter,\
-readability-uppercase-literal-suffix,\
-readability-implicit-bool-conversion,\
-hicpp-uppercase-literal-suffix,\
-misc-use-anonymous-namespace,\
-bugprone-easily-swappable-parameters,\
-*-reinterpret-cast,\
-cppcoreguidelines-avoid-const-or-ref-data-members"
WarningsAsErrors: false
AnalyzeTemporaryDtors: false
FormatStyle: file
HeaderFilterRegex: "(^config.h|.*\\.hpp)$"
CheckOptions:
llvm-else-after-return.WarnOnConditionVariables: "false"
modernize-loop-convert.MinConfidence: reasonable
modernize-replace-auto-ptr.IncludeStyle: llvm
modernize-pass-by-value.IncludeStyle: llvm
google-readability-namespace-comments.ShortNamespaceLines: "10"
google-readability-namespace-comments.SpacesBeforeComments: "2"
cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: "true"
readability-braces-around-statements.ShortStatementLines: 3
cert-err33-c.CheckedFunctions: "::aligned_alloc;::asctime_s;::at_quick_exit;::atexit;::bsearch;::bsearch_s;::btowc;::c16rtomb;::c32rtomb;::calloc;::clock;::cnd_broadcast;::cnd_init;::cnd_signal;::cnd_timedwait;::cnd_wait;::ctime_s;::fclose;::fflush;::fgetc;::fgetpos;::fgets;::fgetwc;::fopen;::fopen_s;::fprintf;::fprintf_s;::fputc;::fputs;::fputwc;::fputws;::fread;::freopen;::freopen_s;::fscanf;::fscanf_s;::fseek;::fsetpos;::ftell;::fwprintf;::fwprintf_s;::fwrite;::fwscanf;::fwscanf_s;::getc;::getchar;::getenv;::getenv_s;::gets_s;::getwc;::getwchar;::gmtime;::gmtime_s;::localtime;::localtime_s;::malloc;::mbrtoc16;::mbrtoc32;::mbsrtowcs;::mbsrtowcs_s;::mbstowcs;::mbstowcs_s;::memchr;::mktime;::mtx_init;::mtx_lock;::mtx_timedlock;::mtx_trylock;::mtx_unlock;::printf_s;::putc;::putwc;::raise;::realloc;::remove;::rename;::scanf;::scanf_s;::setlocale;::setvbuf;::signal;::snprintf;::snprintf_s;::sprintf;::sprintf_s;::sscanf;::sscanf_s;::strchr;::strerror_s;::strftime;::strpbrk;::strrchr;::strstr;::strtod;::strtof;::strtoimax;::strtok;::strtok_s;::strtol;::strtold;::strtoll;::strtoul;::strtoull;::strtoumax;::strxfrm;::swprintf;::swprintf_s;::swscanf;::swscanf_s;::thrd_create;::thrd_detach;::thrd_join;::thrd_sleep;::time;::timespec_get;::tmpfile;::tmpfile_s;::tmpnam;::tmpnam_s;::tss_create;::tss_get;::tss_set;::ungetc;::ungetwc;::vfprintf;::vfprintf_s;::vfscanf;::vfscanf_s;::vfwprintf;::vfwprintf_s;::vfwscanf;::vfwscanf_s;::vprintf_s;::vscanf;::vscanf_s;::vsnprintf;::vsnprintf_s;::vsprintf;::vsprintf_s;::vsscanf;::vsscanf_s;::vswprintf;::vswprintf_s;::vswscanf;::vswscanf_s;::vwprintf_s;::vwscanf;::vwscanf_s;::wcrtomb;::wcschr;::wcsftime;::wcspbrk;::wcsrchr;::wcsrtombs;::wcsrtombs_s;::wcsstr;::wcstod;::wcstof;::wcstoimax;::wcstok;::wcstok_s;::wcstol;::wcstold;::wcstoll;::wcstombs;::wcstombs_s;::wcstoul;::wcstoull;::wcstoumax;::wcsxfrm;::wctob;::wctrans;::wctype;::wmemchr;::wprintf_s;::wscanf;::wscanf_s;"
modernize-loop-convert.MaxCopySize: "16"
cert-dcl16-c.NewSuffixes: "L;LL;LU;LLU"
cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField: "false"
cert-str34-c.DiagnoseSignedUnsignedCharComparisons: "false"
modernize-use-nullptr.NullMacros: "NULL"
llvm-qualified-auto.AddConstToQualified: "false"
modernize-loop-convert.NamingStyle: CamelCase
llvm-else-after-return.WarnOnUnfixable: "false"
google-readability-function-size.StatementThreshold: "800"
bugprone-argument-comment.StrictMode: "true"
# Prefer using enum classes with 2 values for parameters instead of bools
bugprone-argument-comment.CommentBoolLiterals: "true"
bugprone-misplaced-widening-cast.CheckImplicitCasts: "true"
bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression: "true"
bugprone-suspicious-string-compare.WarnOnLogicalNotComparison: "true"
readability-simplify-boolean-expr.ChainedConditionalReturn: "true"
readability-simplify-boolean-expr.ChainedConditionalAssignment: "true"
readability-uniqueptr-delete-release.PreferResetCall: "true"
readability-function-cognitive-complexity.IgnoreMacros: "true"
cppcoreguidelines-init-variables.MathHeader: "<cmath>"
cppcoreguidelines-narrowing-conversions.PedanticMode: "true"
readability-else-after-return.WarnOnUnfixable: "true"
readability-else-after-return.WarnOnConditionVariables: "true"
readability-inconsistent-declaration-parameter-name.Strict: "true"
readability-qualified-auto.AddConstToQualified: "true"
readability-redundant-access-specifiers.CheckFirstDeclaration: "true"
readability-identifier-naming.AbstractClassCase: "CamelCase"
readability-identifier-naming.ClassCase: "CamelCase"
readability-identifier-naming.ClassConstantCase: "lower_case"
readability-identifier-naming.ClassMemberCase: "lower_case"
readability-identifier-naming.ClassMethodCase: "lower_case"
readability-identifier-naming.ConstantCase: "UPPER_CASE"
readability-identifier-naming.ConstantMemberCase: "UPPER_CASE"
readability-identifier-naming.ConstantParameterCase: "lower_case"
readability-identifier-naming.ConstantPointerParameterCase: "lower_case"
readability-identifier-naming.ConstexprFunctionCase: "lower_case"
readability-identifier-naming.ConstexprMethodCase: "lower_case"
readability-identifier-naming.ConstexprVariableCase: "UPPER_CASE"
readability-identifier-naming.EnumCase: "CamelCase"
readability-identifier-naming.EnumConstantCase: "UPPER_CASE"
readability-identifier-naming.FunctionCase: "lower_case"
readability-identifier-naming.GlobalConstantCase: "UPPER_CASE"
readability-identifier-naming.GlobalConstantPointerCase: "UPPER_CASE"
readability-identifier-naming.GlobalFunctionCase: "lower_case"
readability-identifier-naming.GlobalPointerCase: "lower_case"
readability-identifier-naming.GlobalVariableCase: "lower_case"
readability-identifier-naming.InlineNamespaceCase: "lower_case"
readability-identifier-naming.LocalConstantCase: "lower_case"
readability-identifier-naming.LocalConstantPointerCase: "lower_case"
readability-identifier-naming.LocalPointerCase: "lower_case"
readability-identifier-naming.LocalVariableCase: "lower_case"
readability-identifier-naming.MacroDefinitionCase: "UPPER_CASE"
readability-identifier-naming.MemberCase: "lower_case"
readability-identifier-naming.MethodCase: "lower_case"
readability-identifier-naming.NamespaceCase: "lower_case"
readability-identifier-naming.ParameterCase: "lower_case"
readability-identifier-naming.ParameterPackCase: "lower_case"
readability-identifier-naming.PointerParameterCase: "lower_case"
readability-identifier-naming.PrivateMemberCase: "lower_case"
readability-identifier-naming.PrivateMemberSuffix: "_"
readability-identifier-naming.PrivateMethodCase: "lower_case"
readability-identifier-naming.PrivateMethodSuffix: "_"
readability-identifier-naming.ProtectedMemberCase: "lower_case"
readability-identifier-naming.ProtectedMemberSuffix: "_"
readability-identifier-naming.ProtectedMethodCase: "lower_case"
readability-identifier-naming.ProtectedMethodSuffix: "_"
readability-identifier-naming.PublicMemberCase: "lower_case"
readability-identifier-naming.PublicMethodCase: "lower_case"
readability-identifier-naming.ScopedEnumConstantCase: "UPPER_CASE"
readability-identifier-naming.StaticConstantCase: "lower_case"
readability-identifier-naming.StaticVariableCase: "lower_case"
readability-identifier-naming.StructCase: "lower_case"
readability-identifier-naming.TemplateParameterCase: "CamelCase"
readability-identifier-naming.TemplateTemplateParameterCase: "CamelCase"
readability-identifier-naming.TypeAliasCase: "lower_case"
readability-identifier-naming.TypedefCase: "lower_case"
readability-identifier-naming.TypeTemplateParameterCase: "CamelCase"
readability-identifier-naming.UnionCase: "lower_case"
readability-identifier-naming.ValueTemplateParameterCase: "CamelCase"
readability-identifier-naming.VariableCase: "lower_case"
readability-identifier-naming.VirtualMethodCase: "lower_case"
readability-identifier-length.IgnoredVariableNames: "^(ok|c)$"
---