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 # --------------------------