Add editor tooling configuration

clangd fallback flags, clang-format style, clang-tidy checks, and gitignore for the autotools-generated artifacts.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
This commit is contained in:
2026-08-30 04:09:45 -04:00
co-authored by Sisyphus
parent b3b065c325
commit 6768ec36e7
4 changed files with 90 additions and 23 deletions
+19
View File
@@ -0,0 +1,19 @@
# .clangd — LSP configuration for nulsl-libc.
#
# Fallback flags used when compile_commands.json is absent. After running
# `make compile_commands` (requires bear), clangd uses the exact build
# flags from bin/release/ instead, and these are merged on top.
CompileFlags:
Compiler: clang
Add:
- -std=c17
- -Iinclude
- -ffreestanding
- -fno-builtin
- -Wall
- -Wextra
# Treat all headers as project headers so warnings apply inside them.
Diagnostics:
Suppress:
- unknown-pragmas