-
Notifications
You must be signed in to change notification settings - Fork 82
/
.clangd
61 lines (61 loc) · 1.49 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
CompileFlags:
Add:
[
-Weverything,
-Wno-pre-c++14-compat,
-Wno-pre-c++14-compat-pedantic,
-Wno-pre-c++17-compat,
-Wno-pre-c++17-compat-pedantic,
-Wno-pre-c++20-compat,
-Wno-pre-c++20-compat-pedantic,
-Wno-c++98-compat,
-Wno-c++98-compat-pedantic,
-Wno-c++11-compat,
-Wno-c++11-compat-pedantic,
-Wno-c++14-compat,
-Wno-c++14-compat-pedantic,
-Wno-c++17-compat,
-Wno-c++17-compat-pedantic,
-Wno-c++20-compat,
-Wno-c++20-compat-pedantic,
-Wno-padded,
-Wno-implicit-int-conversion,
-Wno-sign-conversion,
-Wno-missing-variable-declarations,
-Wno-weak-vtables,
-Wno-global-constructors,
-Wno-exit-time-destructors,
-Wno-missing-prototypes,
]
Remove: -W*
---
If:
PathMatch: .*\.h
PathExclude: [ios/.*, mapedit/tools/mockup/.*, mapedit/tools/smooth/.*]
CompileFlags:
Add: [-xc++-user-header, -std=c++17]
---
If:
PathMatch: [.*\.c]
CompileFlags:
Add: [-xc, -std=c11, -Wno-declaration-after-statement]
---
If:
PathMatch: [mapedit/tools/mockup/.*\.h, mapedit/tools/smooth/.*\.h]
CompileFlags:
Add: [-xc-header, -std=c11, -Wno-declaration-after-statement]
---
If:
PathMatch: [.*\.m]
CompileFlags:
Add: [-Wno-declaration-after-statement]
---
If:
PathMatch: [ios/.\.h]
CompileFlags:
Add: [-xobjective-c-header, -Wno-declaration-after-statement]
---
If:
PathMatch: [audio/midi_drivers/Core(Audio)?MidiDriver\.h]
CompileFlags:
Add: [-xc++-user-header]