-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clangd
More file actions
45 lines (38 loc) · 986 Bytes
/
.clangd
File metadata and controls
45 lines (38 loc) · 986 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
CompileFlags:
# Fallback compilation flags for header analysis without compile_commands.json
Add:
- "-std=c++17"
- "-I/home/shane/dev/tiny-llm/include"
- "-I/home/shane/dev/tiny-llm/kernels"
- "-Wall"
- "-Wextra"
- "-DCUDA_VERSION=11080"
- "-D__CUDACC__"
# When compile_commands.json exists, prefer it
CompilationDatabase: build
Index:
Background: Build
StandardLibrary: Yes
Diagnostics:
# Enable stricter diagnostics
UnusedIncludes: Strict
MissingIncludes: Error
# Suppress CUDA-specific warnings that clang doesn't understand
Suppress:
- "pp_file_not_found" # CUDA headers like cuda_fp16.h
ClangTidy:
Add:
- "performance-*"
- "bugprone-*"
- "modernize-*"
- "readability-identifier-naming"
Remove:
- "modernize-use-trailing-return-type"
- "readability-magic-numbers"
InlayHints:
Enabled: Yes
ParameterNames: Yes
DeducedTypes: Yes
Designators: Yes
Hover:
ShowAKA: Yes