-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clangd
45 lines (41 loc) · 993 Bytes
/
.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
41
42
43
44
# Options for both C and C++
CompileFlags:
Add: [
-std=c++20,
-Wall,
-Wextra,
-I../include,
-xc++,
-I.,
-ferror-limit=0,
-fstack-protector-strong,
-fprebuilt-module-path=.,
]
Index:
Background: Build
StandardLibrary: Yes
Diagnostics:
ClangTidy:
Add: [
# https://clang.llvm.org/extra/clang-tidy/checks/list.html
performance*,
readability*,
modernize*,
bugprone*,
concurrency*,
darwin*,
misc*, # this one's a lilttle suspect
cppcoreguidelines*,
portability*,
]
Remove: [
modernize-use-trailing-return-type,
readability-identifier-length,
bugprone-easily-swappable-parameters,
readability-magic-numbers,
cppcoreguidelines-avoid-magic-numbers, # nAmEd CoNsTanT
# cppcoreguidelines-pro-bounds-pointer-arithmetic, # do not use ptr arithmetic bruh
# cppcoreguidelines-owning-memory,
]
Hover:
ShowAKA: true