-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.clangd.example
More file actions
34 lines (29 loc) · 1.11 KB
/
.clangd.example
File metadata and controls
34 lines (29 loc) · 1.11 KB
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
# Local clangd configuration example.
# Keep the real .clangd untracked and adjust CompilationDatabase paths per platform.
If:
PathMatch: .*\.(cu|cuh)
CompileFlags:
Compiler: clang++
Remove: [ "-forward-unknown-to-host-compiler", "-Xcompiler= /GR /EHsc", "-Xcompiler= -Zi -Ob0 -Od /RTC1", "/nologo", "/TP", "/EHsc", "/Zi", "/O2", "/arch:AVX", "/bigobj", "/W4", "/external:*", "/openmp", "-MDd", "/Fo*", "/Fd*", "/FS", "-c", "-GS", "-WX", "-wd*", "-J", "-utf-8", "/GR", "-std:*" ]
Add:
[ -xcuda,
"--cuda-path=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8",
-fms-compatibility,
-fms-extensions,
-fdelayed-template-parsing,
-std=c++20 ]
CompilationDatabase: build/debug
---
If:
PathMatch: ^pu-erh_lab/tests/.*\.(c|h)pp$
CompileFlags:
CompilationDatabase: build/macos-debug-tests
Diagnostics:
Suppress: redefinition_different_typedef
---
If:
PathMatch: ^pu-erh_lab/src/.*\.(c|h)pp$
CompileFlags:
CompilationDatabase: build/macos-debug
Diagnostics:
Suppress: redefinition_different_typedef