fix(clangd): fixing the clangd rules

This commit is contained in:
Raphael 2025-05-13 11:21:29 +02:00
parent f4a74eb3c4
commit b3087814e9

View file

@ -30,7 +30,8 @@ CXXFLAGS += $(DEBUG)
# Sources # Sources
SRC = sources/core/main.cpp SRC = sources/core/main.cpp
INC_DIR = include/core INC_DIR = include/core \
include
CPPFLAGS = $(addprefix -I, $(INC_DIR)) -MMD -MP CPPFLAGS = $(addprefix -I, $(INC_DIR)) -MMD -MP
@ -137,7 +138,7 @@ clangd:
done done
@printf " - \"-I"$(shell pwd)"/\"\n" >> .clangd; @printf " - \"-I"$(shell pwd)"/\"\n" >> .clangd;
@for file in $(INC_DIR); do \ @for file in $(INC_DIR); do \
printf " - \"-I"$(shell pwd)"/"$$file"\"" >> .clangd; \ printf " - \"-I"$(shell pwd)"/"$$file"\"\n" >> .clangd; \
done done
@printf "\n" >> ./.clangd @printf "\n" >> ./.clangd
@printf '$(GREY) Now parsing settings is set in $(END)$(GREEN)./.clangd$(END)\n' @printf '$(GREY) Now parsing settings is set in $(END)$(GREEN)./.clangd$(END)\n'