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:
@@ -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
|
||||
Reference in New Issue
Block a user