adds a script to generate a clangd file for editor usage
This commit is contained in:
15
util/gen-clangd.sh
Executable file
15
util/gen-clangd.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This must be built with `make env` in the root folder
|
||||
# otherwises the paths will be incorrect
|
||||
|
||||
echo "CompileFlags:
|
||||
Add:
|
||||
- \"--sysroot=$(pwd)/sysroot\"
|
||||
- \"-ffreestanding\"
|
||||
- \"-Wpedantic\"
|
||||
- \"-Werror\"
|
||||
- \"-Wall\"
|
||||
- \"-Wextra\"
|
||||
" > .clangd
|
||||
|
Reference in New Issue
Block a user