clangd
This commit is contained in:
24
.clangd
24
.clangd
@@ -1,14 +1,18 @@
|
||||
# .clangd
|
||||
CompileFlags:
|
||||
Add:
|
||||
- -I./include # Add your project's include directory
|
||||
- -std=gnu11 # Use C11 standard with GNU extensions
|
||||
- -Wall # Enable all warnings
|
||||
- -Wextra # Extra warnings
|
||||
- -Wno-unused-parameter # Optional: suppress some noisy warnings
|
||||
# Project headers
|
||||
- "-I./include"
|
||||
- "-I./src"
|
||||
|
||||
Index:
|
||||
Threads: 0 # Use all available cores for indexing
|
||||
# System headers (Xcode/Clang standard library)
|
||||
- "-isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
|
||||
- "-isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include"
|
||||
|
||||
Diagnostics:
|
||||
Suppress: [] # You can list warnings/errors to ignore if needed
|
||||
# Compiler flags
|
||||
- "-std=gnu11"
|
||||
- "-Wall"
|
||||
- "-Wextra"
|
||||
- "-Wno-unused-parameter"
|
||||
|
||||
# Project macros
|
||||
- "-DDEBUG=1"
|
||||
|
||||
Reference in New Issue
Block a user