2 Checks: 'clang-diagnostic-*,clang-analyzer-*,cppcoreguidelines-*,bugprone-*,concurrency-*,modernize-*,performance-*,portability-*,readability-*,-modernize-use-trailing-return-type,-readability-magic-numbers,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-type-union-access,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-pro-type-vararg'
5 AnalyzeTemporaryDtors: false
9 - key: readability-suspicious-call-argument.PrefixSimilarAbove
11 - key: cppcoreguidelines-no-malloc.Reallocations
13 - key: cppcoreguidelines-owning-memory.LegacyResourceConsumers
14 value: '::free;::realloc;::freopen;::fclose'
15 - key: bugprone-reserved-identifier.Invert
17 - key: bugprone-narrowing-conversions.PedanticMode
19 - key: bugprone-unused-return-value.CheckedFunctions
20 value: '::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'
21 - key: modernize-use-auto.MinTypeNameLength
23 - key: cppcoreguidelines-macro-usage.CheckCapsOnly
25 - key: readability-inconsistent-declaration-parameter-name.Strict
27 - key: readability-suspicious-call-argument.DiceDissimilarBelow
29 - key: readability-suspicious-call-argument.Equality
31 - key: bugprone-easily-swappable-parameters.QualifiersMix
33 - key: bugprone-suspicious-string-compare.WarnOnImplicitComparison
35 - key: bugprone-argument-comment.CommentNullPtrs
37 - key: cppcoreguidelines-narrowing-conversions.WarnOnFloatingPointNarrowingConversion
39 - key: cppcoreguidelines-init-variables.IncludeStyle
41 - key: modernize-use-nodiscard.ReplacementString
42 value: '[[nodiscard]]'
43 - key: modernize-loop-convert.MakeReverseRangeHeader
45 - key: readability-suspicious-call-argument.SuffixSimilarAbove
47 - key: cppcoreguidelines-narrowing-conversions.WarnOnIntegerNarrowingConversion
49 - key: bugprone-easily-swappable-parameters.IgnoredParameterNames
50 value: '"";iterator;Iterator;begin;Begin;end;End;first;First;last;Last;lhs;LHS;rhs;RHS'
51 - key: modernize-loop-convert.UseCxx20ReverseRanges
53 - key: cppcoreguidelines-prefer-member-initializer.UseAssignment
55 - key: performance-type-promotion-in-math-fn.IncludeStyle
57 - key: readability-function-cognitive-complexity.DescribeBasicIncrements
59 - key: bugprone-suspicious-include.ImplementationFileExtensions
61 - key: modernize-loop-convert.MakeReverseRangeFunction
63 - key: readability-inconsistent-declaration-parameter-name.IgnoreMacros
65 - key: bugprone-suspicious-missing-comma.SizeThreshold
67 - key: readability-identifier-naming.IgnoreFailedSplit
69 - key: readability-qualified-auto.AddConstToQualified
71 - key: bugprone-sizeof-expression.WarnOnSizeOfThis
73 - key: bugprone-string-constructor.WarnOnLargeLength
75 - key: cppcoreguidelines-explicit-virtual-functions.OverrideSpelling
77 - key: readability-uppercase-literal-suffix.IgnoreMacros
79 - key: modernize-make-shared.IgnoreMacros
81 - key: bugprone-dynamic-static-initializers.HeaderFileExtensions
82 value: ';h;hh;hpp;hxx'
83 - key: bugprone-suspicious-enum-usage.StrictMode
85 - key: performance-unnecessary-copy-initialization.AllowedTypes
87 - key: bugprone-suspicious-missing-comma.MaxConcatenatedTokens
89 - key: modernize-use-transparent-functors.SafeMode
91 - key: readability-suspicious-call-argument.Levenshtein
93 - key: bugprone-not-null-terminated-result.WantToUseSafeFunctions
95 - key: bugprone-string-constructor.LargeLengthThreshold
97 - key: readability-simplify-boolean-expr.ChainedConditionalAssignment
99 - key: cppcoreguidelines-avoid-magic-numbers.IgnoreAllFloatingPointValues
101 - key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
103 - key: bugprone-exception-escape.FunctionsThatShouldNotThrow
105 - key: performance-inefficient-vector-operation.EnableProto
107 - key: modernize-make-shared.MakeSmartPtrFunction
108 value: 'std::make_shared'
109 - key: modernize-loop-convert.MaxCopySize
111 - key: readability-suspicious-call-argument.PrefixDissimilarBelow
113 - key: readability-function-size.LineThreshold
115 - key: bugprone-easily-swappable-parameters.MinimumLength
117 - key: portability-simd-intrinsics.Suggest
119 - key: cppcoreguidelines-pro-bounds-constant-array-index.GslHeader
121 - key: modernize-use-override.IgnoreDestructors
123 - key: modernize-make-shared.MakeSmartPtrFunctionHeader
125 - key: bugprone-sizeof-expression.WarnOnSizeOfConstant
127 - key: readability-redundant-string-init.StringNames
128 value: '::std::basic_string_view;::std::basic_string'
129 - key: modernize-make-unique.IgnoreDefaultInitialization
131 - key: modernize-use-emplace.ContainersWithPushBack
132 value: '::std::vector;::std::list;::std::deque'
133 - key: readability-magic-numbers.IgnoreBitFieldsWidths
135 - key: modernize-make-unique.IncludeStyle
137 - key: modernize-use-override.OverrideSpelling
139 - key: readability-suspicious-call-argument.LevenshteinDissimilarBelow
141 - key: bugprone-argument-comment.CommentStringLiterals
143 - key: concurrency-mt-unsafe.FunctionSet
145 - key: google-readability-braces-around-statements.ShortStatementLines
147 - key: bugprone-reserved-identifier.AllowedIdentifiers
149 - key: cppcoreguidelines-pro-type-member-init.IgnoreArrays
151 - key: readability-else-after-return.WarnOnUnfixable
153 - key: cppcoreguidelines-avoid-magic-numbers.IgnoredFloatingPointValues
155 - key: modernize-use-emplace.IgnoreImplicitConstructors
157 - key: cppcoreguidelines-macro-usage.IgnoreCommandLineMacros
159 - key: readability-suspicious-call-argument.Substring
161 - key: modernize-use-equals-delete.IgnoreMacros
163 - key: cppcoreguidelines-pro-bounds-constant-array-index.IncludeStyle
165 - key: readability-magic-numbers.IgnoreAllFloatingPointValues
167 - key: readability-suspicious-call-argument.Abbreviations
168 value: 'arr=array;cnt=count;idx=index;src=source;stmt=statement;cpy=copy;dest=destination;dist=distancedst=distance;ptr=pointer;wdth=width;str=string;ln=line;srv=server;attr=attribute;ref=reference;buf=buffer;col=column;nr=number;vec=vector;len=length;elem=element;val=value;i=index;var=variable;hght=height;cl=client;num=number;pos=position;lst=list;addr=address'
169 - key: bugprone-misplaced-widening-cast.CheckImplicitCasts
171 - key: readability-uppercase-literal-suffix.NewSuffixes
173 - key: modernize-loop-convert.MinConfidence
175 - key: performance-unnecessary-value-param.AllowedTypes
177 - key: readability-uniqueptr-delete-release.PreferResetCall
179 - key: cppcoreguidelines-avoid-magic-numbers.IgnorePowersOf2IntegerValues
181 - key: google-readability-namespace-comments.SpacesBeforeComments
183 - key: cppcoreguidelines-avoid-magic-numbers.IgnoreBitFieldsWidths
185 - key: cppcoreguidelines-avoid-magic-numbers.IgnoredIntegerValues
187 - key: cppcoreguidelines-no-malloc.Allocations
188 value: '::malloc;::calloc'
189 - key: bugprone-narrowing-conversions.IgnoreConversionFromTypes
191 - key: readability-function-size.BranchThreshold
193 - key: bugprone-suspicious-missing-comma.RatioThreshold
195 - key: readability-implicit-bool-conversion.AllowIntegerConditions
197 - key: readability-function-size.StatementThreshold
199 - key: readability-identifier-naming.IgnoreMainLikeFunctions
201 - key: cppcoreguidelines-init-variables.MathHeader
203 - key: google-readability-function-size.StatementThreshold
205 - key: bugprone-reserved-identifier.AggressiveDependentMemberLookup
207 - key: readability-suspicious-call-argument.DiceSimilarAbove
209 - key: modernize-use-equals-default.IgnoreMacros
211 - key: readability-suspicious-call-argument.Abbreviation
213 - key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
215 - key: modernize-use-emplace.SmartPointers
216 value: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr'
217 - key: cppcoreguidelines-no-malloc.Deallocations
219 - key: bugprone-dangling-handle.HandleClasses
220 value: 'std::basic_string_view;std::experimental::basic_string_view'
221 - key: readability-magic-numbers.IgnorePowersOf2IntegerValues
223 - key: readability-suspicious-call-argument.JaroWinklerSimilarAbove
225 - key: readability-simplify-subscript-expr.Types
226 value: '::std::basic_string;::std::basic_string_view;::std::vector;::std::array'
227 - key: performance-unnecessary-copy-initialization.ExcludedContainerTypes
229 - key: modernize-replace-auto-ptr.IncludeStyle
231 - key: performance-move-const-arg.CheckTriviallyCopyableMove
233 - key: readability-static-accessed-through-instance.NameSpecifierNestingThreshold
235 - key: readability-function-size.VariableThreshold
237 - key: cert-dcl16-c.NewSuffixes
239 - key: bugprone-narrowing-conversions.WarnOnFloatingPointNarrowingConversion
241 - key: readability-identifier-naming.GetConfigPerFile
243 - key: modernize-use-default-member-init.UseAssignment
245 - key: readability-function-size.NestingThreshold
247 - key: modernize-use-override.AllowOverrideAndFinal
249 - key: cppcoreguidelines-narrowing-conversions.IgnoreConversionFromTypes
251 - key: readability-function-size.ParameterThreshold
253 - key: modernize-pass-by-value.ValuesOnly
255 - key: readability-function-cognitive-complexity.IgnoreMacros
257 - key: modernize-loop-convert.IncludeStyle
259 - key: cert-str34-c.DiagnoseSignedUnsignedCharComparisons
261 - key: bugprone-narrowing-conversions.WarnWithinTemplateInstantiation
263 - key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison
265 - key: cppcoreguidelines-explicit-virtual-functions.AllowOverrideAndFinal
267 - key: readability-redundant-smartptr-get.IgnoreMacros
269 - key: readability-identifier-naming.AggressiveDependentMemberLookup
271 - key: modernize-use-emplace.TupleTypes
272 value: '::std::pair;::std::tuple'
273 - key: modernize-use-emplace.TupleMakeFunctions
274 value: '::std::make_pair;::std::make_tuple'
275 - key: cppcoreguidelines-owning-memory.LegacyResourceProducers
276 value: '::malloc;::aligned_alloc;::realloc;::calloc;::fopen;::freopen;::tmpfile'
277 - key: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether
279 - key: bugprone-argument-comment.StrictMode
281 - key: modernize-replace-random-shuffle.IncludeStyle
283 - key: modernize-use-bool-literals.IgnoreMacros
285 - key: bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField
287 - key: google-readability-namespace-comments.ShortNamespaceLines
289 - key: bugprone-suspicious-string-compare.StringCompareLikeFunctions
291 - key: modernize-avoid-bind.PermissiveParameterList
293 - key: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold
295 - key: readability-suspicious-call-argument.Suffix
297 - key: readability-suspicious-call-argument.JaroWinklerDissimilarBelow
299 - key: modernize-use-noexcept.ReplacementString
301 - key: modernize-use-override.FinalSpelling
303 - key: modernize-use-using.IgnoreMacros
305 - key: cppcoreguidelines-explicit-virtual-functions.FinalSpelling
307 - key: readability-suspicious-call-argument.MinimumIdentifierNameLength
309 - key: bugprone-narrowing-conversions.WarnOnIntegerNarrowingConversion
311 - key: modernize-loop-convert.NamingStyle
313 - key: cppcoreguidelines-pro-type-member-init.UseAssignment
315 - key: bugprone-suspicious-include.HeaderFileExtensions
316 value: ';h;hh;hpp;hxx'
317 - key: performance-no-automatic-move.AllowedTypes
319 - key: readability-suspicious-call-argument.SubstringDissimilarBelow
321 - key: bugprone-argument-comment.CommentIntegerLiterals
323 - key: performance-for-range-copy.WarnOnAllAutoCopies
325 - key: modernize-pass-by-value.IncludeStyle
327 - key: bugprone-argument-comment.CommentFloatLiterals
329 - key: bugprone-too-small-loop-variable.MagnitudeBitsUpperLimit
331 - key: readability-simplify-boolean-expr.ChainedConditionalReturn
333 - key: readability-else-after-return.WarnOnConditionVariables
335 - key: modernize-use-nullptr.NullMacros
337 - key: readability-suspicious-call-argument.SuffixDissimilarBelow
339 - key: bugprone-argument-comment.CommentCharacterLiterals
341 - key: cppcoreguidelines-macro-usage.AllowedRegexp
343 - key: readability-suspicious-call-argument.LevenshteinSimilarAbove
345 - key: cppcoreguidelines-narrowing-conversions.PedanticMode
347 - key: modernize-make-shared.IgnoreDefaultInitialization
349 - key: readability-suspicious-call-argument.JaroWinkler
351 - key: bugprone-implicit-widening-of-multiplication-result.UseCXXHeadersInCppSources
353 - key: modernize-make-shared.IncludeStyle
355 - key: readability-suspicious-call-argument.Prefix
357 - key: cppcoreguidelines-special-member-functions.AllowMissingMoveFunctions
359 - key: bugprone-implicit-widening-of-multiplication-result.UseCXXStaticCastsInCppSources
361 - key: bugprone-signed-char-misuse.CharTypdefsToIgnore
363 - key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors
365 - key: modernize-make-unique.IgnoreMacros
367 - key: performance-for-range-copy.AllowedTypes
369 - key: bugprone-argument-comment.CommentBoolLiterals
371 - key: readability-braces-around-statements.ShortStatementLines
373 - key: bugprone-argument-comment.CommentUserDefinedLiterals
375 - key: readability-magic-numbers.IgnoredFloatingPointValues
377 - key: readability-implicit-bool-conversion.AllowPointerConditions
379 - key: performance-inefficient-string-concatenation.StrictMode
381 - key: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes
382 value: 'bool;Bool;_Bool;it;It;iterator;Iterator;inputit;InputIt;forwardit;FowardIt;bidirit;BidirIt;constiterator;const_iterator;Const_Iterator;Constiterator;ConstIterator;RandomIt;randomit;random_iterator;ReverseIt;reverse_iterator;reverse_const_iterator;ConstReverseIterator;Const_Reverse_Iterator;const_reverse_iterator;Constreverseiterator;constreverseiterator'
383 - key: modernize-make-unique.MakeSmartPtrFunction
384 value: 'std::make_unique'
385 - key: readability-redundant-declaration.IgnoreMacros
387 - key: portability-restrict-system-includes.Includes
389 - key: modernize-make-unique.MakeSmartPtrFunctionHeader
391 - key: bugprone-signal-handler.AsyncSafeFunctionSet
393 - key: bugprone-easily-swappable-parameters.ModelImplicitConversions
395 - key: readability-suspicious-call-argument.SubstringSimilarAbove
397 - key: cppcoreguidelines-narrowing-conversions.WarnWithinTemplateInstantiation
399 - key: cppcoreguidelines-narrowing-conversions.WarnOnEquivalentBitWidth
401 - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnorePublicMemberVariables
403 - key: cppcoreguidelines-special-member-functions.AllowMissingMoveFunctionsWhenCopyIsDeleted
405 - key: modernize-use-noexcept.UseNoexceptFalse
407 - key: readability-function-cognitive-complexity.Threshold
409 - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
411 - key: bugprone-argument-comment.IgnoreSingleArgument
413 - key: bugprone-narrowing-conversions.WarnOnEquivalentBitWidth
415 - key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression
417 - key: performance-faster-string-find.StringLikeClasses
418 value: '::std::basic_string;::std::basic_string_view'
419 - key: bugprone-assert-side-effect.CheckFunctionCalls
421 - key: bugprone-string-constructor.StringNames
422 value: '::std::basic_string;::std::basic_string_view'
423 - key: bugprone-assert-side-effect.AssertMacros
424 value: assert,NSAssert,NSCAssert
425 - key: bugprone-exception-escape.IgnoredExceptions
427 - key: bugprone-signed-char-misuse.DiagnoseSignedUnsignedCharComparisons
429 - key: modernize-use-default-member-init.IgnoreMacros
431 - key: llvm-qualified-auto.AddConstToQualified
433 - key: llvm-else-after-return.WarnOnConditionVariables
435 - key: bugprone-sizeof-expression.WarnOnSizeOfCompareToConstant
437 - key: modernize-raw-string-literal.DelimiterStem
439 - key: readability-suspicious-call-argument.Dice
441 - key: modernize-raw-string-literal.ReplaceShorterLiterals
443 - key: readability-magic-numbers.IgnoredIntegerValues
445 - key: performance-inefficient-vector-operation.VectorLikeClasses
446 value: '::std::vector'
447 - key: modernize-use-auto.RemoveStars
449 - key: bugprone-implicit-widening-of-multiplication-result.IncludeStyle
451 - key: portability-simd-intrinsics.Std
453 - key: performance-unnecessary-value-param.IncludeStyle
455 - key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
457 - key: modernize-replace-disallow-copy-and-assign-macro.MacroName
458 value: DISALLOW_COPY_AND_ASSIGN
459 - key: llvm-else-after-return.WarnOnUnfixable