-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
195 lines (193 loc) · 15.2 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# SPDX-FileCopyrightText: (C) 2024 Matthias Fehring <https://www.huessenbergnetz.de>
#
# SPDX-License-Identifier: CC0-1.0
---
Checks: '-*,clang-*,bugprone-*,-bugprone-suspicious-include,-bugprone-easily-swappable-parameters,modernize-*,-modernize-use-trailing-return-type,-modernize-pass-by-value,cppcoreguidelines-*'
WarningsAsErrors: ''
HeaderFileExtensions:
- ''
- h
ImplementationFileExtensions:
- cpp
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
User: 'Matthias Fehring <mf@huessenbergnetz.de'
CheckOptions:
cppcoreguidelines-narrowing-conversions.IgnoreConversionFromTypes: ''
bugprone-argument-comment.CommentFloatLiterals: '0'
bugprone-argument-comment.CommentUserDefinedLiterals: '0'
modernize-use-emplace.ContainersWithPush: '::std::stack;::std::queue;::std::priority_queue'
modernize-use-bool-literals.IgnoreMacros: 'true'
bugprone-sizeof-expression.WarnOnSizeOfThis: 'true'
modernize-replace-auto-ptr.IncludeStyle: llvm
modernize-use-std-print.PrintfLikeFunctions: '::printf;absl::PrintF'
cppcoreguidelines-special-member-functions.AllowMissingMoveFunctions: 'false'
bugprone-suspicious-missing-comma.MaxConcatenatedTokens: '5'
bugprone-signed-char-misuse.CharTypdefsToIgnore: ''
modernize-make-unique.IgnoreMacros: 'true'
modernize-use-emplace.ContainersWithPushFront: '::std::forward_list;::std::list;::std::deque'
modernize-use-std-print.ReplacementPrintlnFunction: 'std::println'
cppcoreguidelines-pro-type-member-init.UseAssignment: 'false'
modernize-make-shared.IgnoreMacros: 'true'
cppcoreguidelines-narrowing-conversions.WarnOnEquivalentBitWidth: 'true'
cppcoreguidelines-owning-memory.LegacyResourceConsumers: '::free;::realloc;::freopen;::fclose'
cppcoreguidelines-narrowing-conversions.PedanticMode: 'false'
bugprone-dangling-handle.HandleClasses: 'std::basic_string_view;std::experimental::basic_string_view'
modernize-use-noexcept.ReplacementString: ''
cppcoreguidelines-avoid-magic-numbers.IgnoredFloatingPointValues: '1.0;100.0;'
modernize-loop-convert.MakeReverseRangeHeader: ''
llvm-else-after-return.WarnOnUnfixable: 'false'
bugprone-exception-escape.IgnoredExceptions: ''
bugprone-signal-handler.AsyncSafeFunctionSet: POSIX
modernize-loop-convert.MaxCopySize: '16'
cppcoreguidelines-no-malloc.Reallocations: '::realloc'
bugprone-argument-comment.CommentIntegerLiterals: '0'
bugprone-argument-comment.CommentNullPtrs: '0'
cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField: 'false'
modernize-make-unique.MakeSmartPtrFunctionHeader: '<memory>'
cppcoreguidelines-avoid-magic-numbers.IgnoreTypeAliases: 'false'
cppcoreguidelines-no-malloc.Deallocations: '::free'
cppcoreguidelines-avoid-magic-numbers.IgnoreUserDefinedLiterals: 'false'
modernize-make-unique.MakeSmartPtrFunction: 'std::make_unique'
modernize-deprecated-headers.CheckHeaderFile: 'false'
bugprone-narrowing-conversions.WarnOnIntegerNarrowingConversion: 'true'
bugprone-argument-comment.CommentCharacterLiterals: '0'
modernize-make-unique.IncludeStyle: llvm
cert-dcl16-c.NewSuffixes: 'L;LL;LU;LLU'
bugprone-reserved-identifier.Invert: 'false'
cppcoreguidelines-avoid-magic-numbers.IgnoredIntegerValues: '1;2;3;4;'
bugprone-string-constructor.LargeLengthThreshold: '8388608'
cert-str34-c.DiagnoseSignedUnsignedCharComparisons: 'false'
bugprone-string-constructor.WarnOnLargeLength: 'true'
modernize-loop-convert.UseCxx20ReverseRanges: 'true'
modernize-use-std-print.IncludeStyle: llvm
cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor: 'false'
modernize-loop-convert.MakeReverseRangeFunction: ''
cppcoreguidelines-owning-memory.LegacyResourceProducers: '::malloc;::aligned_alloc;::realloc;::calloc;::fopen;::freopen;::tmpfile'
modernize-use-std-print.PrintHeader: '<print>'
modernize-use-override.FinalSpelling: final
modernize-use-emplace.SmartPointers: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr'
bugprone-reserved-identifier.AggressiveDependentMemberLookup: 'false'
bugprone-unused-return-value.CheckedFunctions: '::std::async;::std::launder;::std::remove;::std::remove_if;::std::unique;::std::unique_ptr::release;::std::basic_string::empty;::std::vector::empty;::std::back_inserter;::std::distance;::std::find;::std::find_if;::std::inserter;::std::lower_bound;::std::make_pair;::std::map::count;::std::map::find;::std::map::lower_bound;::std::multimap::equal_range;::std::multimap::upper_bound;::std::set::count;::std::set::find;::std::setfill;::std::setprecision;::std::setw;::std::upper_bound;::std::vector::at;::bsearch;::ferror;::feof;::isalnum;::isalpha;::isblank;::iscntrl;::isdigit;::isgraph;::islower;::isprint;::ispunct;::isspace;::isupper;::iswalnum;::iswprint;::iswspace;::isxdigit;::memchr;::memcmp;::strcmp;::strcoll;::strncmp;::strpbrk;::strrchr;::strspn;::strstr;::wcscmp;::access;::bind;::connect;::difftime;::dlsym;::fnmatch;::getaddrinfo;::getopt;::htonl;::htons;::iconv_open;::inet_addr;::isascii;::isatty;::mmap;::newlocale;::openat;::pathconf;::pthread_equal;::pthread_getspecific;::pthread_mutex_trylock;::readdir;::readlink;::recvmsg;::regexec;::scandir;::semget;::setjmp;::shm_open;::shmget;::sigismember;::strcasecmp;::strsignal;::ttyname'
google-readability-namespace-comments.ShortNamespaceLines: '10'
cppcoreguidelines-avoid-do-while.IgnoreMacros: 'false'
modernize-replace-disallow-copy-and-assign-macro.MacroName: DISALLOW_COPY_AND_ASSIGN
modernize-make-shared.IgnoreDefaultInitialization: 'true'
cppcoreguidelines-no-malloc.Allocations: '::malloc;::calloc'
cppcoreguidelines-init-variables.MathHeader: '<math.h>'
bugprone-suspicious-missing-comma.RatioThreshold: '0.200000'
bugprone-argument-comment.CommentStringLiterals: '0'
bugprone-implicit-widening-of-multiplication-result.IncludeStyle: llvm
bugprone-sizeof-expression.WarnOnSizeOfConstant: 'true'
cppcoreguidelines-rvalue-reference-param-not-moved.AllowPartialMove: 'false'
modernize-loop-convert.IncludeStyle: llvm
modernize-use-equals-default.IgnoreMacros: 'true'
cppcoreguidelines-explicit-virtual-functions.FinalSpelling: final
modernize-make-unique.IgnoreDefaultInitialization: 'true'
bugprone-empty-catch.AllowEmptyCatchForExceptions: ''
bugprone-too-small-loop-variable.MagnitudeBitsUpperLimit: '16'
cppcoreguidelines-macro-usage.AllowedRegexp: '^DEBUG_*'
cppcoreguidelines-pro-type-member-init.IgnoreArrays: 'false'
modernize-use-std-print.ReplacementPrintFunction: 'std::print'
bugprone-unchecked-optional-access.IgnoreSmartPointerDereference: 'false'
cppcoreguidelines-rvalue-reference-param-not-moved.IgnoreUnnamedParams: 'false'
modernize-type-traits.IgnoreMacros: 'false'
modernize-use-override.IgnoreDestructors: 'false'
cppcoreguidelines-explicit-virtual-functions.IgnoreTemplateInstantiations: 'false'
modernize-replace-random-shuffle.IncludeStyle: llvm
bugprone-argument-comment.CommentBoolLiterals: '0'
modernize-use-nullptr.NullMacros: 'NULL'
bugprone-stringview-nullptr.IncludeStyle: llvm
modernize-use-std-print.StrictMode: 'false'
bugprone-narrowing-conversions.PedanticMode: 'false'
bugprone-argument-comment.StrictMode: '0'
modernize-raw-string-literal.DelimiterStem: lit
bugprone-narrowing-conversions.WarnOnEquivalentBitWidth: 'true'
cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors: 'false'
bugprone-suspicious-enum-usage.StrictMode: 'false'
llvm-qualified-auto.AddConstToQualified: 'false'
cppcoreguidelines-avoid-magic-numbers.IgnorePowersOf2IntegerValues: 'false'
bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression: 'false'
modernize-use-emplace.TupleTypes: '::std::pair;::std::tuple'
bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField: 'true'
bugprone-dynamic-static-initializers.HeaderFileExtensions: ';h;hh;hpp;hxx'
google-readability-braces-around-statements.ShortStatementLines: '1'
cppcoreguidelines-explicit-virtual-functions.AllowOverrideAndFinal: 'false'
bugprone-narrowing-conversions.WarnWithinTemplateInstantiation: 'false'
bugprone-argument-comment.IgnoreSingleArgument: '0'
bugprone-narrowing-conversions.WarnOnFloatingPointNarrowingConversion: 'true'
bugprone-suspicious-missing-comma.SizeThreshold: '5'
modernize-use-std-print.FprintfLikeFunctions: '::fprintf;absl::FPrintF'
modernize-use-using.IgnoreMacros: 'true'
cppcoreguidelines-macro-usage.IgnoreCommandLineMacros: 'true'
modernize-use-auto.MinTypeNameLength: '5'
bugprone-narrowing-conversions.WarnOnIntegerToFloatingPointNarrowingConversion: 'true'
cppcoreguidelines-use-default-member-init.IgnoreMacros: 'true'
modernize-use-override.IgnoreTemplateInstantiations: 'false'
cppcoreguidelines-use-default-member-init.UseAssignment: 'false'
modernize-loop-convert.MinConfidence: reasonable
bugprone-suspicious-string-compare.WarnOnLogicalNotComparison: 'false'
modernize-make-shared.MakeSmartPtrFunctionHeader: '<memory>'
modernize-use-emplace.IgnoreImplicitConstructors: 'false'
bugprone-implicit-widening-of-multiplication-result.UseCXXHeadersInCppSources: 'true'
bugprone-unsafe-functions.ReportMoreUnsafeFunctions: 'true'
cppcoreguidelines-special-member-functions.AllowMissingMoveFunctionsWhenCopyIsDeleted: 'true'
cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: 'true'
bugprone-suspicious-string-compare.StringCompareLikeFunctions: ''
google-readability-function-size.StatementThreshold: '800'
modernize-use-noexcept.UseNoexceptFalse: 'true'
bugprone-implicit-widening-of-multiplication-result.UseCXXStaticCastsInCppSources: 'true'
modernize-make-shared.IncludeStyle: llvm
bugprone-suspicious-string-compare.WarnOnImplicitComparison: 'true'
modernize-use-emplace.EmplacyFunctions: 'vector::emplace_back;vector::emplace;deque::emplace;deque::emplace_front;deque::emplace_back;forward_list::emplace_after;forward_list::emplace_front;list::emplace;list::emplace_back;list::emplace_front;set::emplace;set::emplace_hint;map::emplace;map::emplace_hint;multiset::emplace;multiset::emplace_hint;multimap::emplace;multimap::emplace_hint;unordered_set::emplace;unordered_set::emplace_hint;unordered_map::emplace;unordered_map::emplace_hint;unordered_multiset::emplace;unordered_multiset::emplace_hint;unordered_multimap::emplace;unordered_multimap::emplace_hint;stack::emplace;queue::emplace;priority_queue::emplace'
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;'
cppcoreguidelines-narrowing-conversions.WarnOnFloatingPointNarrowingConversion: 'true'
bugprone-unused-return-value.CheckedReturnTypes: '::std::error_code;::std::error_condition;::std::errc;::std::expected;::boost::system::error_code'
bugprone-assert-side-effect.IgnoredFunctions: __builtin_expect
bugprone-string-constructor.StringNames: '::std::basic_string;::std::basic_string_view'
bugprone-exception-escape.FunctionsThatShouldNotThrow: ''
modernize-use-default-member-init.IgnoreMacros: 'true'
bugprone-misplaced-widening-cast.CheckImplicitCasts: 'false'
modernize-use-equals-delete.IgnoreMacros: 'true'
cppcoreguidelines-narrowing-conversions.WarnOnIntegerToFloatingPointNarrowingConversion: 'true'
modernize-use-emplace.ContainersWithPushBack: '::std::vector;::std::list;::std::deque'
modernize-pass-by-value.ValuesOnly: 'false'
cppcoreguidelines-avoid-magic-numbers.IgnoreBitFieldsWidths: 'true'
bugprone-not-null-terminated-result.WantToUseSafeFunctions: 'true'
modernize-use-override.AllowOverrideAndFinal: 'false'
bugprone-non-zero-enum-to-bool-conversion.EnumIgnoreList: ''
bugprone-narrowing-conversions.IgnoreConversionFromTypes: ''
bugprone-assert-side-effect.AssertMacros: assert,NSAssert,NSCAssert
modernize-use-emplace.TupleMakeFunctions: '::std::make_pair;::std::make_tuple'
cppcoreguidelines-non-private-member-variables-in-classes.IgnorePublicMemberVariables: 'false'
cppcoreguidelines-avoid-magic-numbers.IgnoreAllFloatingPointValues: 'false'
cppcoreguidelines-explicit-virtual-functions.OverrideSpelling: override
cppcoreguidelines-pro-bounds-constant-array-index.GslHeader: ''
modernize-raw-string-literal.ReplaceShorterLiterals: 'false'
cppcoreguidelines-rvalue-reference-param-not-moved.IgnoreNonDeducedTemplateTypes: 'false'
bugprone-sizeof-expression.WarnOnSizeOfCompareToConstant: 'true'
cppcoreguidelines-init-variables.IncludeStyle: llvm
bugprone-empty-catch.IgnoreCatchWithKeywords: '@TODO;@FIXME'
modernize-use-nodiscard.ReplacementString: 'Q_REQUIRED_RESULT'
cppcoreguidelines-narrowing-conversions.WarnWithinTemplateInstantiation: 'false'
google-readability-namespace-comments.SpacesBeforeComments: '2'
bugprone-assert-side-effect.CheckFunctionCalls: 'false'
modernize-use-default-member-init.UseAssignment: 'false'
bugprone-reserved-identifier.AllowedIdentifiers: ''
modernize-avoid-bind.PermissiveParameterList: 'false'
modernize-pass-by-value.IncludeStyle: llvm
modernize-loop-convert.NamingStyle: CamelCase
modernize-make-shared.MakeSmartPtrFunction: 'std::make_shared'
bugprone-sizeof-expression.WarnOnSizeOfPointerToAggregate: 'true'
cppcoreguidelines-prefer-member-initializer.UseAssignment: 'false'
cppcoreguidelines-pro-bounds-constant-array-index.IncludeStyle: llvm
bugprone-signed-char-misuse.DiagnoseSignedUnsignedCharComparisons: 'true'
modernize-use-auto.RemoveStars: 'false'
cppcoreguidelines-narrowing-conversions.WarnOnIntegerNarrowingConversion: 'true'
llvm-else-after-return.WarnOnConditionVariables: 'false'
modernize-use-override.OverrideSpelling: override
modernize-use-transparent-functors.SafeMode: 'false'
cppcoreguidelines-macro-usage.CheckCapsOnly: 'false'
SystemHeaders: false
...