-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clangd
40 lines (37 loc) · 1.01 KB
/
.clangd
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
CompileFlags:
Add: -std=c++20
Diagnostics:
ClangTidy:
Add: ['bugprone-*',
'concurrency-*',
'cppcoreguidelines-*',
'darwin-*',
'readability-*',
'performance-*',
'portability-*',
'zircon-*',
'cert-*',
'clang-diagnostic-*',
'clang-analyzer-*',
'modernize-*']
CheckOptions:
'bugprone-reserved-identifier.AllowedIdentifiers': '__internals'
'readability-function-cognitive-complexity.Threshold': 40
Remove: [
'modernize-use-trailing-return-type',
'cppcoreguidelines-avoid-magic-numbers',
'readability-magic-numbers',
'bugprone-easily-swappable-parameters',
'cert-dcl50-cpp',
'cert-dcl37-c',
'cert-dcl51-cpp',
'cppcoreguidelines-pro-type-vararg',
'readability-braces-around-statements',
'readability-identifier-length'
]
---
# Disable include-what-you-use for test files
If:
PathMatch: test.*\.cpp
Diagnostics:
UnusedIncludes: None