clangd
This commit is contained in:
24
.clangd
24
.clangd
@@ -1,14 +1,18 @@
|
|||||||
# .clangd
|
|
||||||
CompileFlags:
|
CompileFlags:
|
||||||
Add:
|
Add:
|
||||||
- -I./include # Add your project's include directory
|
# Project headers
|
||||||
- -std=gnu11 # Use C11 standard with GNU extensions
|
- "-I./include"
|
||||||
- -Wall # Enable all warnings
|
- "-I./src"
|
||||||
- -Wextra # Extra warnings
|
|
||||||
- -Wno-unused-parameter # Optional: suppress some noisy warnings
|
|
||||||
|
|
||||||
Index:
|
# System headers (Xcode/Clang standard library)
|
||||||
Threads: 0 # Use all available cores for indexing
|
- "-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:
|
# Compiler flags
|
||||||
Suppress: [] # You can list warnings/errors to ignore if needed
|
- "-std=gnu11"
|
||||||
|
- "-Wall"
|
||||||
|
- "-Wextra"
|
||||||
|
- "-Wno-unused-parameter"
|
||||||
|
|
||||||
|
# Project macros
|
||||||
|
- "-DDEBUG=1"
|
||||||
|
|||||||
19
compile_commands.json
Normal file
19
compile_commands.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"file": "src/renderer.c",
|
||||||
|
"arguments": [
|
||||||
|
"aarch64-none-elf-gcc",
|
||||||
|
"-O2",
|
||||||
|
"-ffreestanding",
|
||||||
|
"-Wall",
|
||||||
|
"-Wextra",
|
||||||
|
"-Iinclude",
|
||||||
|
"-c",
|
||||||
|
"src/renderer.c",
|
||||||
|
"-o",
|
||||||
|
"build/renderer.o"
|
||||||
|
],
|
||||||
|
"directory": "/Users/nate/Documents/GitHub/nate-os",
|
||||||
|
"output": "build/renderer.o"
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user