add compile commands for clangd

This commit is contained in:
Luca Bilke 2024-02-10 23:49:55 +01:00
parent 266859bb04
commit f5956ea334
No known key found for this signature in database
GPG Key ID: AD6630D0A1E650AC
2 changed files with 209 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
build/ build/
.cache/ .cache/
compile_commands.json

209
compile_commands.json Normal file
View File

@ -0,0 +1,209 @@
[
{
"arguments": [
"/usr/bin/cc",
"-std=c99",
"-Ofast",
"-I.",
"-Iinclude",
"-std=c99",
"-DBINARY=\"dwmblocks\"",
"-D_POSIX_C_SOURCE=200809L",
"-Wall",
"-Wpedantic",
"-Wextra",
"-Wswitch-enum",
"-c",
"-o",
"build/block.o",
"src/block.c"
],
"directory": "/home/luca/Documents/dev/desktop/dwmblocks-custom",
"file": "/home/luca/Documents/dev/desktop/dwmblocks-custom/src/block.c",
"output": "/home/luca/Documents/dev/desktop/dwmblocks-custom/build/block.o"
},
{
"arguments": [
"/usr/bin/cc",
"-std=c99",
"-Ofast",
"-I.",
"-Iinclude",
"-std=c99",
"-DBINARY=\"dwmblocks\"",
"-D_POSIX_C_SOURCE=200809L",
"-Wall",
"-Wpedantic",
"-Wextra",
"-Wswitch-enum",
"-c",
"-o",
"build/cli.o",
"src/cli.c"
],
"directory": "/home/luca/Documents/dev/desktop/dwmblocks-custom",
"file": "/home/luca/Documents/dev/desktop/dwmblocks-custom/src/cli.c",
"output": "/home/luca/Documents/dev/desktop/dwmblocks-custom/build/cli.o"
},
{
"arguments": [
"/usr/bin/cc",
"-std=c99",
"-Ofast",
"-I.",
"-Iinclude",
"-std=c99",
"-DBINARY=\"dwmblocks\"",
"-D_POSIX_C_SOURCE=200809L",
"-Wall",
"-Wpedantic",
"-Wextra",
"-Wswitch-enum",
"-c",
"-o",
"build/main.o",
"src/main.c"
],
"directory": "/home/luca/Documents/dev/desktop/dwmblocks-custom",
"file": "/home/luca/Documents/dev/desktop/dwmblocks-custom/src/main.c",
"output": "/home/luca/Documents/dev/desktop/dwmblocks-custom/build/main.o"
},
{
"arguments": [
"/usr/bin/cc",
"-std=c99",
"-Ofast",
"-I.",
"-Iinclude",
"-std=c99",
"-DBINARY=\"dwmblocks\"",
"-D_POSIX_C_SOURCE=200809L",
"-Wall",
"-Wpedantic",
"-Wextra",
"-Wswitch-enum",
"-c",
"-o",
"build/signal-handler.o",
"src/signal-handler.c"
],
"directory": "/home/luca/Documents/dev/desktop/dwmblocks-custom",
"file": "/home/luca/Documents/dev/desktop/dwmblocks-custom/src/signal-handler.c",
"output": "/home/luca/Documents/dev/desktop/dwmblocks-custom/build/signal-handler.o"
},
{
"arguments": [
"/usr/bin/cc",
"-std=c99",
"-Ofast",
"-I.",
"-Iinclude",
"-std=c99",
"-DBINARY=\"dwmblocks\"",
"-D_POSIX_C_SOURCE=200809L",
"-Wall",
"-Wpedantic",
"-Wextra",
"-Wswitch-enum",
"-c",
"-o",
"build/status.o",
"src/status.c"
],
"directory": "/home/luca/Documents/dev/desktop/dwmblocks-custom",
"file": "/home/luca/Documents/dev/desktop/dwmblocks-custom/src/status.c",
"output": "/home/luca/Documents/dev/desktop/dwmblocks-custom/build/status.o"
},
{
"arguments": [
"/usr/bin/cc",
"-std=c99",
"-Ofast",
"-I.",
"-Iinclude",
"-std=c99",
"-DBINARY=\"dwmblocks\"",
"-D_POSIX_C_SOURCE=200809L",
"-Wall",
"-Wpedantic",
"-Wextra",
"-Wswitch-enum",
"-c",
"-o",
"build/timer.o",
"src/timer.c"
],
"directory": "/home/luca/Documents/dev/desktop/dwmblocks-custom",
"file": "/home/luca/Documents/dev/desktop/dwmblocks-custom/src/timer.c",
"output": "/home/luca/Documents/dev/desktop/dwmblocks-custom/build/timer.o"
},
{
"arguments": [
"/usr/bin/cc",
"-std=c99",
"-Ofast",
"-I.",
"-Iinclude",
"-std=c99",
"-DBINARY=\"dwmblocks\"",
"-D_POSIX_C_SOURCE=200809L",
"-Wall",
"-Wpedantic",
"-Wextra",
"-Wswitch-enum",
"-c",
"-o",
"build/util.o",
"src/util.c"
],
"directory": "/home/luca/Documents/dev/desktop/dwmblocks-custom",
"file": "/home/luca/Documents/dev/desktop/dwmblocks-custom/src/util.c",
"output": "/home/luca/Documents/dev/desktop/dwmblocks-custom/build/util.o"
},
{
"arguments": [
"/usr/bin/cc",
"-std=c99",
"-Ofast",
"-I.",
"-Iinclude",
"-std=c99",
"-DBINARY=\"dwmblocks\"",
"-D_POSIX_C_SOURCE=200809L",
"-Wall",
"-Wpedantic",
"-Wextra",
"-Wswitch-enum",
"-c",
"-o",
"build/watcher.o",
"src/watcher.c"
],
"directory": "/home/luca/Documents/dev/desktop/dwmblocks-custom",
"file": "/home/luca/Documents/dev/desktop/dwmblocks-custom/src/watcher.c",
"output": "/home/luca/Documents/dev/desktop/dwmblocks-custom/build/watcher.o"
},
{
"arguments": [
"/usr/bin/cc",
"-std=c99",
"-Ofast",
"-I.",
"-Iinclude",
"-std=c99",
"-DBINARY=\"dwmblocks\"",
"-D_POSIX_C_SOURCE=200809L",
"-Wall",
"-Wpedantic",
"-Wextra",
"-Wswitch-enum",
"-c",
"-o",
"build/x11.o",
"src/x11.c"
],
"directory": "/home/luca/Documents/dev/desktop/dwmblocks-custom",
"file": "/home/luca/Documents/dev/desktop/dwmblocks-custom/src/x11.c",
"output": "/home/luca/Documents/dev/desktop/dwmblocks-custom/build/x11.o"
}
]