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]>
20 lines
513 B
YAML
20 lines
513 B
YAML
# .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
|