-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clangd
More file actions
47 lines (38 loc) · 862 Bytes
/
.clangd
File metadata and controls
47 lines (38 loc) · 862 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# .clangd configuration file for AlgoDataStruct
CompileFlags:
# Path to compile_commands.json (symlink in root points to build/)
CompilationDatabase: .
# Add include paths explicitly
Add:
- '-I${workspaceFolder}/include'
- '-I${workspaceFolder}/src'
- '-xc++'
- '-std=c++20'
Remove:
- '-DLOCAL*'
- '--gcc-toolchain*'
- '-D__GNUC__*'
# Treat .tpp files as C++ headers
Compiler: clang++
# Treat .tpp files as C++ source
---
If:
PathMatch: .*\.tpp
CompileFlags:
Add:
- '-xc++'
---
# Suppress common template-heavy warnings
Diagnostics:
ClangTidy:
Remove:
- misc-no-recursion
- readability-function-cognitive-complexity
Suppress:
- unused-includes
- unused-template
UnusedIncludes: None
# Index settings for better performance
Index:
Background: Build
StandardLibrary: Yes