Skip to content

Commit 74d1e2e

Browse files
authored
hides the scary files in examples/nvexec from clangd
clangd is crashy when processing the maxwell files in examples/nvexec, so tell clangd to skip them.
1 parent 203a6bd commit 74d1e2e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.clangd

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# https://clangd.llvm.org/config
22

3-
# Apply a config conditionally to all C files
4-
If:
5-
PathMatch: .*\.(c|h)$
6-
7-
---
8-
93
# Apply a config conditionally to all C++ files except those in the
104
# include/execpools directory which need platform-dependent headers
115
If:
@@ -17,10 +11,11 @@ If:
1711
# Apply a config conditionally to all CUDA files
1812
If:
1913
PathMatch: .*\.cuh?$
14+
PathExclude: examples/nvexec/.*
2015
CompileFlags:
2116
Add:
2217
# Allow variadic CUDA functions
23-
- "-Xclang=-fcuda-allow-variadic-functions"
18+
- "-fcuda-allow-variadic-functions"
2419

2520
---
2621

@@ -35,14 +30,15 @@ CompileFlags:
3530

3631
# Use clang++ in CUDA mode to provide intellisense for files with `nvexec` in their path
3732
If:
38-
PathMatch: (include|examples|test)/nvexec.*
33+
PathMatch: [include/nvexec/.*, test/nvexec/.*]
3934
CompileFlags:
4035
Compiler: clang++
4136
Add:
4237
- "-x"
4338
- "cuda"
4439
- "-std=gnu++20"
4540
- "-Wno-unknown-cuda-version"
41+
- "--cuda-host-only"
4642

4743
---
4844

0 commit comments

Comments
 (0)