From 97ee843250e881861832ca030efeb5ca485b3ff6 Mon Sep 17 00:00:00 2001 From: Drath Vader Date: Fri, 24 Oct 2025 12:12:30 +0200 Subject: [PATCH] clang support --- README.md | 3 +- compile_commands.json | 98 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+), 1 deletion(-) create mode 100644 compile_commands.json diff --git a/README.md b/README.md index f6d722f..a0022ce 100644 --- a/README.md +++ b/README.md @@ -64,4 +64,5 @@ Text04="$dll(hwinfo,1,Vcore,3)V $Right($dll(hwinfo,1,Average Effective Clock,a)M ### Additional notes -- To read motherboard sensors on ASUS ROG STRIX B550-A GAMING, as of Linux 6.16 you need to booth with kernel parameter of `acpi_enforce_resources=lax`. On Fedora it can be added by appending it to `/etc/kernel/cmdline`. \ No newline at end of file +- To read motherboard sensors on ASUS ROG STRIX B550-A GAMING, as of Linux 6.16 you need to booth with kernel parameter of `acpi_enforce_resources=lax`. On Fedora it can be added by appending it to `/etc/kernel/cmdline`. +- `compile_commands.json` is so clang understands this project, so we can edit it with helix/neovim. Generated with `bear -- make`, make sure to run `make clean` beforehand. diff --git a/compile_commands.json b/compile_commands.json new file mode 100644 index 0000000..2b4dd49 --- /dev/null +++ b/compile_commands.json @@ -0,0 +1,98 @@ +[ + { + "arguments": [ + "/usr/sbin/g++", + "-std=c++2c", + "-fdiagnostics-color=always", + "-Iinclude", + "-O2", + "-c", + "-o", + "src/utils.o", + "src/utils.cpp" + ], + "directory": "/home/drath/git/linuxSmartie", + "file": "/home/drath/git/linuxSmartie/src/utils.cpp", + "output": "/home/drath/git/linuxSmartie/src/utils.o" + }, + { + "arguments": [ + "/usr/sbin/g++", + "-std=c++2c", + "-fdiagnostics-color=always", + "-Iinclude", + "-O2", + "-c", + "-o", + "src/gpu.o", + "src/gpu.cpp" + ], + "directory": "/home/drath/git/linuxSmartie", + "file": "/home/drath/git/linuxSmartie/src/gpu.cpp", + "output": "/home/drath/git/linuxSmartie/src/gpu.o" + }, + { + "arguments": [ + "/usr/sbin/g++", + "-std=c++2c", + "-fdiagnostics-color=always", + "-Iinclude", + "-O2", + "-c", + "-o", + "src/LCDDisplay.o", + "src/LCDDisplay.cpp" + ], + "directory": "/home/drath/git/linuxSmartie", + "file": "/home/drath/git/linuxSmartie/src/LCDDisplay.cpp", + "output": "/home/drath/git/linuxSmartie/src/LCDDisplay.o" + }, + { + "arguments": [ + "/usr/sbin/g++", + "-std=c++2c", + "-fdiagnostics-color=always", + "-Iinclude", + "-O2", + "-c", + "-o", + "src/cpu.o", + "src/cpu.cpp" + ], + "directory": "/home/drath/git/linuxSmartie", + "file": "/home/drath/git/linuxSmartie/src/cpu.cpp", + "output": "/home/drath/git/linuxSmartie/src/cpu.o" + }, + { + "arguments": [ + "/usr/sbin/g++", + "-std=c++2c", + "-fdiagnostics-color=always", + "-Iinclude", + "-O2", + "-c", + "-o", + "src/hass.o", + "src/hass.cpp" + ], + "directory": "/home/drath/git/linuxSmartie", + "file": "/home/drath/git/linuxSmartie/src/hass.cpp", + "output": "/home/drath/git/linuxSmartie/src/hass.o" + }, + { + "arguments": [ + "/usr/sbin/g++", + "-std=c++2c", + "-fdiagnostics-color=always", + "-Iinclude", + "-O2", + "-c", + "-o", + "src/sys.o", + "src/sys.cpp" + ], + "directory": "/home/drath/git/linuxSmartie", + "file": "/home/drath/git/linuxSmartie/src/sys.cpp", + "output": "/home/drath/git/linuxSmartie/src/sys.o" + } +]