diff --git a/.gitignore b/.gitignore index 5144a17..8e3e981 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.clangd build/ *.pdf *.d diff --git a/cpp00/ex00/Makefile b/cpp00/ex00/Makefile index 2e8a5a6..73914c9 100644 --- a/cpp00/ex00/Makefile +++ b/cpp00/ex00/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/08/19 20:13:41 by rparodi ### ########.fr # +# Updated: 2024/12/21 16:45:27 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -106,7 +106,15 @@ footer: @printf "$(GOLD) '\"' '\"'$(END)\n" @printf ' $(GREY)The compilation is$(END) $(GOLD)finish$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(END)\n' -# Phony -.PHONY: all bonus clean fclean re +clangd: + @echo \ + "CompileFlags:\n" \ + " Add:\n" \ + " - \"-std=c++98 -Wall -Wextra -Werror\"\n" \ + " - \"-I"$(shell pwd)"/includes\"\n" \ + " - \"-xc++\"\n" \ + > .clangd +# Phony +.PHONY: all bonus clean fclean re clangd -include ${OBJ:.o=.d} diff --git a/cpp00/ex01/Makefile b/cpp00/ex01/Makefile index a275b70..e299cb7 100644 --- a/cpp00/ex01/Makefile +++ b/cpp00/ex01/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/04 15:44:54 by rparodi ### ########.fr # +# Updated: 2024/12/21 16:48:34 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -111,7 +111,16 @@ 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: + @echo \ + "CompileFlags:\n" \ + " Add:\n" \ + " - \"-std=c++98 -Wall -Wextra -Werror\"\n" \ + " - \"-I"$(shell pwd)"/includes\"\n" \ + " - \"-xc++\"\n" \ + > .clangd + # Phony -.PHONY: all bonus clean fclean re +.PHONY: all bonus clean fclean re clangd -include ${OBJ:.o=.d} diff --git a/cpp00/ex02/Makefile b/cpp00/ex02/Makefile index 10dcdf9..3128055 100644 --- a/cpp00/ex02/Makefile +++ b/cpp00/ex02/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/04 15:01:43 by rparodi ### ########.fr # +# Updated: 2024/12/21 16:48:10 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -110,7 +110,16 @@ 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: + @echo \ + "CompileFlags:\n" \ + " Add:\n" \ + " - \"-std=c++98 -Wall -Wextra -Werror\"\n" \ + " - \"-I"$(shell pwd)"/includes\"\n" \ + " - \"-xc++\"\n" \ + > .clangd + # Phony -.PHONY: all bonus clean fclean re +.PHONY: all bonus clean fclean re clangd -include ${OBJ:.o=.d} diff --git a/cpp01/ex00/Makefile b/cpp01/ex00/Makefile index e7e935f..2ad6b15 100644 --- a/cpp01/ex00/Makefile +++ b/cpp01/ex00/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/04 15:47:26 by rparodi ### ########.fr # +# Updated: 2024/12/21 16:46:53 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -112,7 +112,15 @@ footer: @printf "$(GOLD) '\"' '\"'$(END)\n" @printf ' $(GREY)The compilation is$(END) $(GOLD)finish$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(END)\n' -# Phony -.PHONY: all bonus clean fclean re +clangd: + @echo \ + "CompileFlags:\n" \ + " Add:\n" \ + " - \"-std=c++98 -Wall -Wextra -Werror\"\n" \ + " - \"-I"$(shell pwd)"/includes\"\n" \ + " - \"-xc++\"\n" \ + > .clangd +# Phony +.PHONY: all bonus clean fclean re clangd -include ${OBJ:.o=.d} diff --git a/cpp01/ex01/Makefile b/cpp01/ex01/Makefile index 2710414..6b0db28 100644 --- a/cpp01/ex01/Makefile +++ b/cpp01/ex01/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/05 12:55:19 by rparodi ### ########.fr # +# Updated: 2024/12/21 16:46:18 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -105,7 +105,15 @@ footer: @printf "$(GOLD) '\"' '\"'$(END)\n" @printf ' $(GREY)The compilation is$(END) $(GOLD)finish$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(END)\n' -# Phony -.PHONY: all bonus clean fclean re +clangd: + @echo \ + "CompileFlags:\n" \ + " Add:\n" \ + " - \"-std=c++98 -Wall -Wextra -Werror\"\n" \ + " - \"-I"$(shell pwd)"/includes\"\n" \ + " - \"-xc++\"\n" \ + > .clangd +# Phony +.PHONY: all bonus clean fclean re clangd -include ${OBJ:.o=.d} diff --git a/cpp01/ex02/Makefile b/cpp01/ex02/Makefile index fc62078..ea4ee4b 100644 --- a/cpp01/ex02/Makefile +++ b/cpp01/ex02/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/05 13:20:52 by rparodi ### ########.fr # +# Updated: 2024/12/21 16:50:22 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -103,7 +103,16 @@ 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: + @echo \ + "CompileFlags:\n" \ + " Add:\n" \ + " - \"-std=c++98 -Wall -Wextra -Werror\"\n" \ + " - \"-I"$(shell pwd)"/includes\"\n" \ + " - \"-xc++\"\n" \ + > .clangd + # Phony -.PHONY: all bonus clean fclean re +.PHONY: all bonus clean fclean re clangd -include ${OBJ:.o=.d} diff --git a/cpp01/ex03/Makefile b/cpp01/ex03/Makefile index 7292040..703c750 100644 --- a/cpp01/ex03/Makefile +++ b/cpp01/ex03/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/05 13:24:14 by rparodi ### ########.fr # +# Updated: 2024/12/21 16:47:22 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -106,7 +106,16 @@ 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: + @echo \ + "CompileFlags:\n" \ + " Add:\n" \ + " - \"-std=c++98 -Wall -Wextra -Werror\"\n" \ + " - \"-I"$(shell pwd)"/includes\"\n" \ + " - \"-xc++\"\n" \ + > .clangd + # Phony -.PHONY: all bonus clean fclean re +.PHONY: all bonus clean fclean re clangd -include ${OBJ:.o=.d} diff --git a/cpp01/ex04/Makefile b/cpp01/ex04/Makefile index 9ba4ab9..4db15eb 100644 --- a/cpp01/ex04/Makefile +++ b/cpp01/ex04/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/05 15:36:01 by rparodi ### ########.fr # +# Updated: 2024/12/21 16:50:22 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -103,7 +103,16 @@ 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: + @echo \ + "CompileFlags:\n" \ + " Add:\n" \ + " - \"-std=c++98 -Wall -Wextra -Werror\"\n" \ + " - \"-I"$(shell pwd)"/includes\"\n" \ + " - \"-xc++\"\n" \ + > .clangd + # Phony -.PHONY: all bonus clean fclean re +.PHONY: all bonus clean fclean re clangd -include ${OBJ:.o=.d} diff --git a/cpp01/ex05/Makefile b/cpp01/ex05/Makefile index cba50a1..d534367 100644 --- a/cpp01/ex05/Makefile +++ b/cpp01/ex05/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/06 17:56:48 by rparodi ### ########.fr # +# Updated: 2024/12/21 16:50:21 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -103,7 +103,16 @@ 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: + @echo \ + "CompileFlags:\n" \ + " Add:\n" \ + " - \"-std=c++98 -Wall -Wextra -Werror\"\n" \ + " - \"-I"$(shell pwd)"/includes\"\n" \ + " - \"-xc++\"\n" \ + > .clangd + # Phony -.PHONY: all bonus clean fclean re +.PHONY: all bonus clean fclean re clangd -include ${OBJ:.o=.d} diff --git a/cpp01/ex06/Makefile b/cpp01/ex06/Makefile index 0547a9f..46daa93 100644 --- a/cpp01/ex06/Makefile +++ b/cpp01/ex06/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/11/06 19:44:47 by rparodi ### ########.fr # +# Updated: 2024/12/21 16:45:48 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -103,7 +103,15 @@ footer: @printf "$(GOLD) '\"' '\"'$(END)\n" @printf ' $(GREY)The compilation is$(END) $(GOLD)finish$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(END)\n' -# Phony -.PHONY: all bonus clean fclean re +clangd: + @echo \ + "CompileFlags:\n" \ + " Add:\n" \ + " - \"-std=c++98 -Wall -Wextra -Werror\"\n" \ + " - \"-I"$(shell pwd)"/includes\"\n" \ + " - \"-xc++\"\n" \ + > .clangd +# Phony +.PHONY: all bonus clean fclean re clangd -include ${OBJ:.o=.d}