File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -24,5 +24,6 @@ docker/webserv/source
2424database /
2525.env
2626
27- # Clangd config file
28- .clangd
27+ .cache /
28+
29+ compile_commands.json
Original file line number Diff line number Diff line change @@ -117,6 +117,9 @@ docker.build:
117117docker.run :
118118 docker run --rm -p 8080:80 --name webserv webserv:latest
119119
120+ bear : fclean
121+ bear -- make
122+
120123lines :
121124 @wc -l $(SRC_DIR ) /* .cpp $(INC_DIR ) /* .hpp $(SRC_DIR ) /* /* .cpp $(INC_DIR ) /* /* .hpp | sort
122125
@@ -132,6 +135,7 @@ help:
132135 @echo " run : Run webserv binary with project configuration file"
133136 @echo " docker.build : Build webserv docker image"
134137 @echo " docker.run : Run webserv docker image"
138+ @echo " bear : Use bear to generate compile_commands.json file which can be used by clangd"
135139 @echo " lines : Count lines of code in source files"
136140
137141.PHONY : all clean fclean re performance debug fsanitize custom flamegraph jmeter lines help
Original file line number Diff line number Diff line change 11#ifndef OUTPUT_HPP
22#define OUTPUT_HPP
33
4- #include < iostream>
5-
6- #include " colors.hpp"
7- #include " webserv.hpp"
4+ #include < string>
85
96typedef enum output_flag_e { SET = 1 , PRINT = 2 , UNSET = 4 } output_flag_t ;
107
Original file line number Diff line number Diff line change 11#include " output.hpp"
22
3+ #include < iostream>
4+
5+ #include " colors.hpp"
6+ #include " webserv.hpp"
7+
38int getBit (output_flag_t flag, int value) { return value & flag; }
49
510void printInfo (int flags) {
You can’t perform that action at this time.
0 commit comments