7 changed files with 123 additions and 49 deletions
@ -0,0 +1,23 @@ |
|||
Checks: " |
|||
-*, |
|||
bugprone-*, |
|||
performance-*, |
|||
readability-*, |
|||
misc-*, |
|||
clang-analyzer-*, |
|||
cppcoreguidelines-*, |
|||
modernize-*, |
|||
|
|||
performance-unnecessary-value-param, |
|||
modernize-pass-by-value, |
|||
|
|||
-readability-identifier-length, |
|||
-modernize-use-trailing-return-type, |
|||
-cppcoreguidelines-magic-numbers, |
|||
-cppcoreguidelines-init-variables, |
|||
" |
|||
|
|||
WarningsAsErrors: '' |
|||
HeaderFilterRegex: '.*' |
|||
AnalyzeTemporaryDtors: false |
|||
FormatStyle: file |
@ -0,0 +1,24 @@ |
|||
Index: |
|||
Background: Build |
|||
|
|||
CompileFlags: |
|||
Add: [-xc++, -Wall, -std=c++20] |
|||
Compiler: clang++ |
|||
|
|||
Diagnostics: |
|||
ClangTidy: |
|||
Add: ["*"] |
|||
Remove: [ |
|||
abseil*, |
|||
fuchsia*, |
|||
llvmlib*, |
|||
zircon*, |
|||
altera*, |
|||
google-readability-todo, |
|||
readability-braces-around-statements, |
|||
hicpp-braces-around-statements, |
|||
modernize-use-trailing-return-type, # 不要每个都加上尾返回值类型 |
|||
readability-identifier-length, # 不检查变量名长度 |
|||
; cppcoreguidelines-avoid-magic-numbers, # 不检查魔法数字 |
|||
; readability-magic-numbers, #同上 |
|||
] |
@ -1,13 +1,13 @@ |
|||
{ |
|||
"configurations": [ |
|||
{ |
|||
"name": "Linux", |
|||
"includePath": [ |
|||
"${workspaceFolder}/**" |
|||
], |
|||
"defines": [], |
|||
"compileCommands": "${workspaceFolder}/build/compile_commands.json" |
|||
} |
|||
], |
|||
"version": 4 |
|||
"configurations": [ |
|||
{ |
|||
"name": "Linux", |
|||
"includePath": [ |
|||
"${workspaceFolder}/**" |
|||
], |
|||
"defines": [], |
|||
"compileCommands": "${workspaceFolder}/build/compile_commands.json" |
|||
} |
|||
], |
|||
"version": 4 |
|||
} |
Loading…
Reference in new issue