From d714dea7fa139c6ac1eaec22c74c5779daa41e92 Mon Sep 17 00:00:00 2001 From: Tobias Linz Date: Wed, 4 Nov 2026 17:31:04 +0100 Subject: [PATCH] Update dev environment --- .gitignore | 4 ++++ .clang-format => Startcode/.clang-format | 0 Startcode/makefile | 6 ++++++ 3 files changed, 10 insertions(+) rename .clang-format => Startcode/.clang-format (100%) diff --git a/.gitignore b/.gitignore index e9476da..16e81e3 100644 --- a/.gitignore +++ b/.gitignore @@ -38,6 +38,10 @@ Startcode/mnist Startcode/runTests +# clangd (locally generated, contains absolute paths) +Startcode/compile_commands.json +Startcode/.cache/ + # Debug files *.dSYM/ *.su diff --git a/.clang-format b/Startcode/.clang-format similarity index 100% rename from .clang-format rename to Startcode/.clang-format diff --git a/Startcode/makefile b/Startcode/makefile index f27b756..8a077e1 100644 --- a/Startcode/makefile +++ b/Startcode/makefile @@ -54,6 +54,12 @@ neuralNetworkTests: neuralNetwork.o matrix.o neuralNetworkTests.c $(unityfolder) imageInputTests: imageInput.o imageInputTests.c $(unityfolder)/unity.c $(CC) $(CFLAGS) -I$(unityfolder) -o runImageInputTests imageInputTests.c imageInput.o $(unityfolder)/unity.c +# -------------------------- +# compile_commands.json für clangd erzeugen (benötigt bear) +# -------------------------- +compiledb: + bear -- $(CC) $(CFLAGS) -fsyntax-only -I$(raylibfolder) -I$(unityfolder) $(wildcard *.c) + # -------------------------- # Clean # --------------------------