-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclangd.yaml
More file actions
27 lines (26 loc) · 746 Bytes
/
clangd.yaml
File metadata and controls
27 lines (26 loc) · 746 Bytes
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
# This is the user-wide configuration file for clangd
CompileFlags:
Add: [
-W,
-Wall,
-pedantic,
-Wno-variadic-macros,
-Wno-gnu-zero-variadic-macro-arguments,
-Wno-gnu-label-as-value,
-Wno-vla-extension,
-Wno-gnu-conditional-omitted-operand
]
---
##### C sources: use the C11 standard ##################################################################################
If:
PathMatch: [.*\.h, .*\.c]
CompileFlags:
Add: [-xc, -std=c11]
Compiler: clang
---
##### C++ sources: use the C++20 standard ##############################################################################
If:
PathMatch: [.*\.hpp, .*\.hh, .*\.cpp, .*\.cc]
CompileFlags:
Add: [-xc++, -std=c++20, -stdlib=libc++]
Compiler: clang++