-
Notifications
You must be signed in to change notification settings - Fork 55
/
.clang-tidy
158 lines (157 loc) · 17.3 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
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,clang-analyzer-*,boost-use-to-string,bugprone-argument-comment,bugprone-assert-side-effect,bugprone-bad-signal-to-kill-thread,bugprone-branch-clone,bugprone-copy-constructor-init,bugprone-dangling-handle,bugprone-dynamic-static-initializers,bugprone-fold-init-type,bugprone-forward-declaration-namespace,bugprone-forwarding-reference-overload,bugprone-inaccurate-erase,bugprone-incorrect-roundings,bugprone-integer-division,bugprone-lambda-function-name,bugprone-macro-parentheses,bugprone-macro-repeated-side-effects,bugprone-misplaced-operator-in-strlen-in-alloc,bugprone-misplaced-pointer-arithmetic-in-alloc,bugprone-misplaced-widening-cast,bugprone-move-forwarding-reference,bugprone-multiple-statement-macro,bugprone-narrowing-conversions,bugprone-no-escape,bugprone-not-null-terminated-result,bugprone-parent-virtual-call,bugprone-posix-return,bugprone-reserved-identifier,bugprone-sizeof-container,bugprone-sizeof-expression,bugprone-string-constructor,bugprone-string-integer-assignment,bugprone-string-literal-with-embedded-nul,bugprone-suspicious-enum-usage,bugprone-suspicious-include,bugprone-suspicious-memory-comparison,bugprone-suspicious-memset-usage,bugprone-suspicious-missing-comma,bugprone-suspicious-semicolon,bugprone-suspicious-string-compare,bugprone-swapped-arguments,bugprone-terminating-continue,bugprone-throw-keyword-missing,bugprone-too-small-loop-variable,bugprone-undefined-memory-manipulation,bugprone-undelegated-constructor,bugprone-unhandled-self-assignment,bugprone-unused-raii,bugprone-unused-return-value,bugprone-use-after-move,bugprone-virtual-near-miss,cert-dcl03-c,cert-dcl21-cpp,cert-dcl58-cpp,cert-err34-c,cert-err52-cpp,cert-err58-cpp,cert-err60-cpp,cert-flp30-c,cert-msc50-cpp,cert-msc51-cpp,cert-oop54-cpp,cert-str34-c,cppcoreguidelines-interfaces-global-init,cppcoreguidelines-narrowing-conversions,cppcoreguidelines-pro-type-member-init,cppcoreguidelines-pro-type-static-cast-downcast,cppcoreguidelines-slicing,google-default-arguments,google-explicit-constructor,google-runtime-operator,hicpp-exception-baseclass,hicpp-multiway-paths-covered,hicpp-signed-bitwise,misc-misplaced-const,misc-new-delete-overloads,misc-no-recursion,misc-non-copyable-objects,misc-redundant-expression,misc-static-assert,misc-throw-by-value-catch-by-reference,misc-unconventional-assign-operator,misc-uniqueptr-reset-release,modernize-avoid-bind,modernize-concat-nested-namespaces,modernize-deprecated-headers,modernize-deprecated-ios-base-aliases,modernize-loop-convert,modernize-make-shared,modernize-make-unique,modernize-pass-by-value,modernize-raw-string-literal,modernize-redundant-void-arg,modernize-replace-auto-ptr,modernize-replace-disallow-copy-and-assign-macro,modernize-replace-random-shuffle,modernize-return-braced-init-list,modernize-shrink-to-fit,modernize-unary-static-assert,modernize-use-auto,modernize-use-bool-literals,modernize-use-emplace,modernize-use-equals-default,modernize-use-equals-delete,modernize-use-nodiscard,modernize-use-noexcept,modernize-use-nullptr,modernize-use-override,modernize-use-transparent-functors,modernize-use-uncaught-exceptions,mpi-buffer-deref,mpi-type-mismatch,openmp-use-default-none,performance-faster-string-find,performance-for-range-copy,performance-implicit-conversion-in-loop,performance-inefficient-algorithm,performance-inefficient-string-concatenation,performance-inefficient-vector-operation,performance-move-const-arg,performance-move-constructor-init,performance-no-automatic-move,performance-noexcept-move-constructor,performance-trivially-destructible,performance-type-promotion-in-math-fn,performance-unnecessary-copy-initialization,performance-unnecessary-value-param,portability-simd-intrinsics,readability-avoid-const-params-in-decls,readability-const-return-type,readability-container-size-empty,readability-convert-member-functions-to-static,readability-delete-null-pointer,readability-deleted-default,readability-inconsistent-declaration-parameter-name,readability-make-member-function-const,readability-misleading-indentation,readability-misplaced-array-index,readability-non-const-parameter,readability-redundant-control-flow,readability-redundant-declaration,readability-redundant-function-ptr-dereference,readability-redundant-smartptr-get,readability-redundant-string-cstr,readability-redundant-string-init,readability-simplify-subscript-expr,readability-static-accessed-through-instance,readability-static-definition-in-anonymous-namespace,readability-string-compare,readability-uniqueptr-delete-release,readability-use-anyofallof'
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
CheckOptions:
performance-unnecessary-copy-initialization.ExcludedContainerTypes: ''
modernize-replace-auto-ptr.IncludeStyle: llvm
performance-move-const-arg.CheckTriviallyCopyableMove: 'true'
modernize-use-auto.MinTypeNameLength: '5'
readability-static-accessed-through-instance.NameSpecifierNestingThreshold: '3'
bugprone-reserved-identifier.Invert: 'false'
bugprone-narrowing-conversions.PedanticMode: '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'
cert-dcl16-c.NewSuffixes: 'L;LL;LU;LLU'
bugprone-narrowing-conversions.WarnOnFloatingPointNarrowingConversion: 'true'
readability-inconsistent-declaration-parameter-name.Strict: 'false'
bugprone-sizeof-expression.WarnOnSizeOfPointerToAggregate: 'true'
bugprone-assert-side-effect.IgnoredFunctions: __builtin_expect
modernize-use-override.AllowOverrideAndFinal: 'false'
cppcoreguidelines-narrowing-conversions.IgnoreConversionFromTypes: ''
modernize-pass-by-value.ValuesOnly: 'false'
modernize-loop-convert.IncludeStyle: llvm
cert-str34-c.DiagnoseSignedUnsignedCharComparisons: 'false'
bugprone-narrowing-conversions.WarnWithinTemplateInstantiation: 'false'
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;'
bugprone-suspicious-string-compare.WarnOnLogicalNotComparison: 'false'
readability-redundant-smartptr-get.IgnoreMacros: 'true'
misc-uniqueptr-reset-release.IncludeStyle: llvm
readability-const-return-type.IgnoreMacros: 'true'
hicpp-signed-bitwise.IgnorePositiveIntegerLiterals: 'false'
bugprone-suspicious-string-compare.WarnOnImplicitComparison: 'true'
modernize-use-emplace.TupleTypes: '::std::pair;::std::tuple'
modernize-use-emplace.TupleMakeFunctions: '::std::make_pair;::std::make_tuple'
bugprone-narrowing-conversions.WarnOnIntegerToFloatingPointNarrowingConversion: 'true'
bugprone-argument-comment.CommentNullPtrs: '0'
bugprone-argument-comment.StrictMode: '0'
modernize-use-nodiscard.ReplacementString: '[[nodiscard]]'
modernize-loop-convert.MakeReverseRangeHeader: ''
readability-avoid-const-params-in-decls.IgnoreMacros: 'true'
cppcoreguidelines-narrowing-conversions.WarnOnFloatingPointNarrowingConversion: 'true'
modernize-replace-random-shuffle.IncludeStyle: llvm
modernize-use-bool-literals.IgnoreMacros: 'true'
bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField: 'true'
google-readability-namespace-comments.ShortNamespaceLines: '10'
bugprone-suspicious-string-compare.StringCompareLikeFunctions: ''
modernize-avoid-bind.PermissiveParameterList: 'false'
modernize-use-override.FinalSpelling: final
modernize-use-emplace.ContainersWithPush: '::std::stack;::std::queue;::std::priority_queue'
cppcoreguidelines-narrowing-conversions.WarnOnIntegerNarrowingConversion: 'true'
modernize-loop-convert.UseCxx20ReverseRanges: 'true'
modernize-use-noexcept.ReplacementString: ''
performance-type-promotion-in-math-fn.IncludeStyle: llvm
bugprone-narrowing-conversions.WarnOnIntegerNarrowingConversion: 'true'
modernize-loop-convert.NamingStyle: CamelCase
bugprone-suspicious-include.ImplementationFileExtensions: 'c;cc;cpp;cxx'
cppcoreguidelines-pro-type-member-init.UseAssignment: 'false'
modernize-loop-convert.MakeReverseRangeFunction: ''
bugprone-suspicious-include.HeaderFileExtensions: ';h;hh;hpp;hxx'
performance-no-automatic-move.AllowedTypes: ''
performance-for-range-copy.WarnOnAllAutoCopies: 'false'
bugprone-argument-comment.CommentIntegerLiterals: '0'
bugprone-suspicious-missing-comma.SizeThreshold: '5'
readability-inconsistent-declaration-parameter-name.IgnoreMacros: 'true'
hicpp-multiway-paths-covered.WarnOnMissingElse: 'false'
modernize-pass-by-value.IncludeStyle: llvm
bugprone-sizeof-expression.WarnOnSizeOfThis: 'true'
bugprone-string-constructor.WarnOnLargeLength: 'true'
bugprone-too-small-loop-variable.MagnitudeBitsUpperLimit: '16'
bugprone-argument-comment.CommentFloatLiterals: '0'
bugprone-argument-comment.CommentCharacterLiterals: '0'
modernize-use-nullptr.NullMacros: 'NULL'
modernize-make-shared.IgnoreMacros: 'true'
modernize-use-emplace.ContainersWithPushFront: '::std::forward_list;::std::list;::std::deque'
bugprone-suspicious-enum-usage.StrictMode: 'false'
performance-unnecessary-copy-initialization.AllowedTypes: ''
bugprone-suspicious-missing-comma.MaxConcatenatedTokens: '5'
modernize-use-transparent-functors.SafeMode: 'false'
bugprone-dynamic-static-initializers.HeaderFileExtensions: ';h;hh;hpp;hxx'
modernize-make-shared.IgnoreDefaultInitialization: 'true'
cppcoreguidelines-narrowing-conversions.PedanticMode: 'false'
bugprone-not-null-terminated-result.WantToUseSafeFunctions: 'true'
modernize-make-shared.IncludeStyle: llvm
bugprone-string-constructor.LargeLengthThreshold: '8388608'
misc-throw-by-value-catch-by-reference.CheckThrowTemporaries: 'true'
cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField: 'false'
modernize-deprecated-headers.CheckHeaderFile: 'false'
performance-inefficient-vector-operation.EnableProto: 'false'
modernize-make-shared.MakeSmartPtrFunction: 'std::make_shared'
modernize-loop-convert.MaxCopySize: '16'
bugprone-argument-comment.CommentStringLiterals: '0'
modernize-use-override.IgnoreDestructors: 'false'
portability-simd-intrinsics.Suggest: 'false'
modernize-make-unique.IgnoreMacros: 'true'
performance-for-range-copy.AllowedTypes: ''
modernize-make-shared.MakeSmartPtrFunctionHeader: '<memory>'
bugprone-sizeof-expression.WarnOnSizeOfConstant: 'true'
readability-redundant-string-init.StringNames: '::std::basic_string_view;::std::basic_string'
modernize-make-unique.IgnoreDefaultInitialization: 'true'
modernize-use-emplace.ContainersWithPushBack: '::std::vector;::std::list;::std::deque'
modernize-make-unique.IncludeStyle: llvm
bugprone-argument-comment.CommentBoolLiterals: '0'
bugprone-argument-comment.CommentUserDefinedLiterals: '0'
modernize-use-override.OverrideSpelling: override
readability-redundant-declaration.IgnoreMacros: 'true'
performance-inefficient-string-concatenation.StrictMode: 'false'
google-readability-braces-around-statements.ShortStatementLines: '1'
modernize-make-unique.MakeSmartPtrFunction: 'std::make_unique'
cppcoreguidelines-pro-type-member-init.IgnoreArrays: 'false'
bugprone-reserved-identifier.AllowedIdentifiers: ''
modernize-use-emplace.IgnoreImplicitConstructors: 'false'
modernize-make-unique.MakeSmartPtrFunctionHeader: '<memory>'
modernize-use-equals-delete.IgnoreMacros: 'true'
cppcoreguidelines-narrowing-conversions.WarnWithinTemplateInstantiation: 'false'
performance-move-const-arg.CheckMoveToConstRef: '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'
cppcoreguidelines-narrowing-conversions.WarnOnEquivalentBitWidth: 'true'
bugprone-misplaced-widening-cast.CheckImplicitCasts: 'false'
bugprone-suspicious-missing-comma.RatioThreshold: '0.200000'
modernize-loop-convert.MinConfidence: reasonable
performance-unnecessary-value-param.AllowedTypes: ''
readability-uniqueptr-delete-release.PreferResetCall: 'false'
misc-throw-by-value-catch-by-reference.MaxSize: '-1'
modernize-use-noexcept.UseNoexceptFalse: 'true'
google-readability-namespace-comments.SpacesBeforeComments: '2'
cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: 'true'
bugprone-argument-comment.IgnoreSingleArgument: '0'
bugprone-narrowing-conversions.WarnOnEquivalentBitWidth: 'true'
bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression: 'false'
performance-faster-string-find.StringLikeClasses: '::std::basic_string;::std::basic_string_view'
bugprone-assert-side-effect.CheckFunctionCalls: 'false'
bugprone-narrowing-conversions.IgnoreConversionFromTypes: ''
cppcoreguidelines-narrowing-conversions.WarnOnIntegerToFloatingPointNarrowingConversion: 'true'
bugprone-string-constructor.StringNames: '::std::basic_string;::std::basic_string_view'
bugprone-assert-side-effect.AssertMacros: assert,NSAssert,NSCAssert
llvm-qualified-auto.AddConstToQualified: 'false'
cert-str34-c.CharTypdefsToIgnore: ''
google-readability-function-size.StatementThreshold: '800'
llvm-else-after-return.WarnOnConditionVariables: 'false'
cert-msc51-cpp.DisallowedSeedTypes: 'time_t,std::time_t'
bugprone-sizeof-expression.WarnOnSizeOfCompareToConstant: 'true'
bugprone-reserved-identifier.AggressiveDependentMemberLookup: 'false'
modernize-raw-string-literal.DelimiterStem: lit
modernize-use-equals-default.IgnoreMacros: 'true'
misc-throw-by-value-catch-by-reference.WarnOnLargeObjects: 'false'
modernize-raw-string-literal.ReplaceShorterLiterals: 'false'
modernize-use-emplace.SmartPointers: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr'
performance-inefficient-vector-operation.VectorLikeClasses: '::std::vector'
modernize-use-auto.RemoveStars: 'false'
bugprone-dangling-handle.HandleClasses: 'std::basic_string_view;std::experimental::basic_string_view'
portability-simd-intrinsics.Std: ''
performance-unnecessary-value-param.IncludeStyle: llvm
modernize-replace-disallow-copy-and-assign-macro.MacroName: DISALLOW_COPY_AND_ASSIGN
llvm-else-after-return.WarnOnUnfixable: 'false'
readability-simplify-subscript-expr.Types: '::std::basic_string;::std::basic_string_view;::std::vector;::std::array'
...