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:
parent
e53fcb1485
commit
2418466658
2 changed files with 15 additions and 5 deletions
4
.clangd
4
.clangd
|
|
@ -1,4 +0,0 @@
|
||||||
CompilerFlags:
|
|
||||||
Add:
|
|
||||||
- "-xc"
|
|
||||||
- "-I/Users/raphael/Documents/42_cursus/circle0/libft/includes"
|
|
||||||
16
Makefile
16
Makefile
|
|
@ -164,7 +164,21 @@ footer:
|
||||||
@printf "$(GOLD) '\"' '\"'$(END)\n"
|
@printf "$(GOLD) '\"' '\"'$(END)\n"
|
||||||
@printf ' $(GREY)The compilation is$(END) $(GOLD)finish$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(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
|
||||||
.PHONY: all bonus clean fclean re
|
.PHONY: all bonus clean fclean re footer header clangd
|
||||||
|
|
||||||
-include ${OBJ:.o=.d}
|
-include ${OBJ:.o=.d}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue