clang format & clang tidy
This commit is contained in:
parent
870a431b24
commit
aaf1dfc49e
1
.clang-format
Normal file
1
.clang-format
Normal file
@ -0,0 +1 @@
|
||||
BasedOnStyle: Microsoft
|
||||
28
.clang-tidy
Normal file
28
.clang-tidy
Normal file
@ -0,0 +1,28 @@
|
||||
Checks: >
|
||||
bugprone-*,
|
||||
clang-analyzer-*,
|
||||
cppcoreguidelines-*,
|
||||
modernize-*,
|
||||
performance-*,
|
||||
readability-*,
|
||||
-modernize-use-trailing-return-type,
|
||||
-modernize-avoid-c-arrays,
|
||||
-cppcoreguidelines-avoid-magic-numbers,
|
||||
-readability-magic-numbers
|
||||
|
||||
CheckOptions:
|
||||
- key: modernize-use-auto.MinTypeNameLength
|
||||
value: 5
|
||||
- key: readability-function-size.LineThreshold
|
||||
value: 80
|
||||
|
||||
- key: modernize-use-nullptr.NullMacros
|
||||
value: 'NULL'
|
||||
- key: modernize-use-using.UseUsing
|
||||
value: true
|
||||
- key: modernize-concat-nested-namespaces.Enabled
|
||||
value: true
|
||||
- key: modernize-return-braced-init-list.Enabled
|
||||
value: true
|
||||
|
||||
ExtraArgs: ['-std=c++20']
|
||||
Loading…
Reference in New Issue
Block a user