From 6caf461920d165440cfc32a131c36843cf3964e8 Mon Sep 17 00:00:00 2001 From: thenatespack Date: Thu, 19 Feb 2026 13:16:04 -0700 Subject: [PATCH] clangd --- .clangd | 24 ++++++++++++++---------- compile_commands.json | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 compile_commands.json diff --git a/.clangd b/.clangd index 0f53c03..4069552 100644 --- a/.clangd +++ b/.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" diff --git a/compile_commands.json b/compile_commands.json new file mode 100644 index 0000000..c9cfb8a --- /dev/null +++ b/compile_commands.json @@ -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" + } +] \ No newline at end of file