Fix clangd

This commit is contained in:
2026-07-08 15:41:53 +01:00
parent 8f73f09b58
commit 7a9b44a735
5 changed files with 9 additions and 5 deletions
+4
View File
@@ -5,6 +5,10 @@ bin/*
compile_commands.json compile_commands.json
.clangd
include/bindings/ruby_compiled.h include/bindings/ruby_compiled.h
p.vim p.vim
.cache/
+2 -2
View File
@@ -10,8 +10,8 @@ PCH_DEBUG := $(OBJ_DIR)/debug/pch.h.gch
PCH_RELEASE := $(OBJ_DIR)/release/pch.h.gch PCH_RELEASE := $(OBJ_DIR)/release/pch.h.gch
CCACHE := ccache CCACHE := ccache
CXX := $(CCACHE) clang++ CXX := $(CCACHE) $(shell which clang++)
CC := $(CCACHE) clang CC := $(CCACHE) $(shell which clang)
# ---------------- SDL3 ---------------- # ---------------- SDL3 ----------------
+1
View File
@@ -18,6 +18,7 @@
devShells = forAllSystems (pkgs: { devShells = forAllSystems (pkgs: {
default = pkgs.mkShell { default = pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
clang-tools
clang clang
ccache ccache
pkg-config pkg-config
+1 -2
View File
@@ -58,7 +58,6 @@
#include <shared_mutex> #include <shared_mutex>
#include <signal.h> #include <signal.h>
#include <stack> #include <stack>
#include <stdio.h>
#include <string.h> #include <string.h>
#include <string> #include <string>
#include <sys/ioctl.h> #include <sys/ioctl.h>
@@ -72,4 +71,4 @@
#include <unordered_set> #include <unordered_set>
#include <vector> #include <vector>
#endif #endif
+1 -1
View File
@@ -38,4 +38,4 @@ int main(int argc, char *argv[]) {
mrb_close(Ruby::mrb); mrb_close(Ruby::mrb);
return 0; return 0;
} }