-
Notifications
You must be signed in to change notification settings - Fork 161
/
.clang-tidy
151 lines (150 loc) · 11.8 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
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,bugprone-*,modernize-*,-bugprone-reserved-identifier,-bugprone-unchecked-optional-access,-bugprone-macro-parentheses,-bugprone-easily-swappable-parameters'
WarningsAsErrors: ''
HeaderFileExtensions:
- ''
- h
- hh
- hpp
- hxx
ImplementationFileExtensions:
- c
- cc
- cpp
- cxx
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
User: eniebler
CheckOptions:
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'
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'
modernize-use-noexcept.ReplacementString: ''
modernize-make-shared.IgnoreMacros: 'true'
modernize-loop-convert.MaxCopySize: '16'
bugprone-dangling-handle.HandleClasses: 'std::basic_string_view;std::experimental::basic_string_view'
modernize-loop-convert.MakeReverseRangeHeader: ''
llvm-else-after-return.WarnOnUnfixable: 'false'
bugprone-exception-escape.IgnoredExceptions: ''
bugprone-signal-handler.AsyncSafeFunctionSet: POSIX
bugprone-argument-comment.CommentIntegerLiterals: '0'
bugprone-argument-comment.CommentNullPtrs: '0'
cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField: 'false'
modernize-make-unique.MakeSmartPtrFunctionHeader: '<memory>'
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-suspicious-missing-comma.RatioThreshold: '0.200000'
bugprone-string-constructor.LargeLengthThreshold: '8388608'
cert-str34-c.DiagnoseSignedUnsignedCharComparisons: 'false'
bugprone-string-constructor.WarnOnLargeLength: 'true'
bugprone-argument-comment.StrictMode: '0'
modernize-use-std-print.IncludeStyle: llvm
modernize-use-emplace.SmartPointers: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr'
modernize-loop-convert.MakeReverseRangeFunction: ''
bugprone-too-small-loop-variable.MagnitudeBitsUpperLimit: '16'
modernize-use-std-print.PrintHeader: '<print>'
modernize-use-override.FinalSpelling: final
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'
modernize-replace-disallow-copy-and-assign-macro.MacroName: DISALLOW_COPY_AND_ASSIGN
bugprone-argument-comment.CommentStringLiterals: '0'
modernize-make-shared.IgnoreDefaultInitialization: 'true'
modernize-make-unique.IgnoreDefaultInitialization: 'true'
modernize-loop-convert.UseCxx20ReverseRanges: 'true'
bugprone-sizeof-expression.WarnOnSizeOfConstant: 'true'
bugprone-implicit-widening-of-multiplication-result.IncludeStyle: llvm
modernize-use-equals-default.IgnoreMacros: 'true'
modernize-loop-convert.IncludeStyle: llvm
bugprone-suspicious-include.HeaderFileExtensions: ';h;hh;hpp;hxx'
modernize-use-std-print.ReplacementPrintFunction: 'std::print'
modernize-use-override.IgnoreDestructors: 'false'
bugprone-empty-catch.AllowEmptyCatchForExceptions: ''
modernize-use-nullptr.NullMacros: 'NULL'
bugprone-argument-comment.CommentBoolLiterals: '0'
modernize-type-traits.IgnoreMacros: 'false'
modernize-use-std-print.StrictMode: 'false'
bugprone-narrowing-conversions.WarnOnEquivalentBitWidth: 'true'
modernize-replace-random-shuffle.IncludeStyle: llvm
bugprone-stringview-nullptr.IncludeStyle: llvm
bugprone-narrowing-conversions.PedanticMode: 'false'
modernize-raw-string-literal.DelimiterStem: lit
bugprone-suspicious-enum-usage.StrictMode: 'false'
llvm-qualified-auto.AddConstToQualified: 'false'
bugprone-suspicious-include.ImplementationFileExtensions: 'c;cc;cpp;cxx'
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'
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'
modernize-use-auto.MinTypeNameLength: '5'
bugprone-narrowing-conversions.WarnOnIntegerToFloatingPointNarrowingConversion: 'true'
modernize-use-override.IgnoreTemplateInstantiations: '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-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;'
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'
modernize-use-emplace.ContainersWithPushBack: '::std::vector;::std::list;::std::deque'
modernize-pass-by-value.ValuesOnly: 'false'
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'
modernize-raw-string-literal.ReplaceShorterLiterals: 'false'
bugprone-sizeof-expression.WarnOnSizeOfCompareToConstant: 'true'
bugprone-empty-catch.IgnoreCatchWithKeywords: '@TODO;@FIXME'
modernize-use-nodiscard.ReplacementString: '[[nodiscard]]'
modernize-pass-by-value.IncludeStyle: llvm
google-readability-namespace-comments.SpacesBeforeComments: '2'
bugprone-assert-side-effect.CheckFunctionCalls: 'false'
bugprone-sizeof-expression.WarnOnSizeOfPointerToAggregate: 'true'
modernize-loop-convert.NamingStyle: CamelCase
modernize-avoid-bind.PermissiveParameterList: 'false'
modernize-make-shared.MakeSmartPtrFunction: 'std::make_shared'
modernize-use-auto.RemoveStars: 'false'
modernize-use-default-member-init.UseAssignment: 'false'
bugprone-signed-char-misuse.DiagnoseSignedUnsignedCharComparisons: 'true'
llvm-else-after-return.WarnOnConditionVariables: 'false'
modernize-use-override.OverrideSpelling: override
modernize-use-transparent-functors.SafeMode: 'false'
SystemHeaders: false
...