From f5956ea334e32724b7aa8215d056241881c59204 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Sat, 10 Feb 2024 23:49:55 +0100 Subject: [PATCH] add compile commands for clangd --- .gitignore | 1 - compile_commands.json | 209 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 209 insertions(+), 1 deletion(-) create mode 100644 compile_commands.json diff --git a/.gitignore b/.gitignore index 902f3c7..a4fb4fb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ build/ .cache/ -compile_commands.json diff --git a/compile_commands.json b/compile_commands.json new file mode 100644 index 0000000..b403617 --- /dev/null +++ b/compile_commands.json @@ -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" + } +]