fix(lsp/neovim): now clangd rules in the Makefile

- The clangd file not needed to be on the repository so deleted it
- The clangd rules in the Makefile allows u to create the files with ur
current directory
This commit is contained in:
Raphael 2025-09-01 18:40:49 +02:00
parent e53fcb1485
commit 2418466658
No known key found for this signature in database
2 changed files with 15 additions and 5 deletions

View file

@ -1,4 +0,0 @@
CompilerFlags:
Add:
- "-xc"
- "-I/Users/raphael/Documents/42_cursus/circle0/libft/includes"

View file

@ -164,7 +164,21 @@ footer:
@printf "$(GOLD) '\"' '\"'$(END)\n"
@printf ' $(GREY)The compilation is$(END) $(GOLD)finish$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(END)\n'
clangd:
@printf "CompileFlags:\n" > ./.clangd
@printf " Add:\n" >> ./.clangd
@printf " - \"-xc\"\n" >> ./.clangd
@for FLAG in $(CXXFLAGS); do \
printf " - \"$$FLAG\"\n" >> ./.clangd; \
done
@printf " - \"-I"$(shell pwd)"/\"\n" >> .clangd;
@for file in $(INC_DIR); do \
printf " - \"-I"$(shell pwd)"/"$$file"\"\n" >> .clangd; \
done
@printf "\n" >> ./.clangd
@printf '$(GREY) Now parsing settings is set in $(END)$(GREEN)./.clangd$(END)\n'
# Phony
.PHONY: all bonus clean fclean re
.PHONY: all bonus clean fclean re footer header clangd
-include ${OBJ:.o=.d}