diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ea8b62d --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +all: compile_commands.json + cd build && ninja + +compile_commands.json: + cd build && ninja -t compdb > compile_commands.json + +clean: + cd build && ninja -t clean + +.PHONY: + compile_commands.json + clean diff --git a/src/util/log.hpp b/src/util/log.hpp index 9746f7b..fbb3abe 100644 --- a/src/util/log.hpp +++ b/src/util/log.hpp @@ -10,8 +10,7 @@ #define XWIM_LOGLEVEL SPDLOG_LEVEL_DEBUG #endif -namespace xwim { -namespace log { +namespace xwim::log { /** * Get log level from XWIM_LOGLEVEL environment variable. @@ -75,5 +74,4 @@ void init(spdlog::level::level_enum level = spdlog::level::level_enum::off) { spdlog::set_level(_init_from_compile()); } -} // namespace log -} // namespace xwim +} // namespace xwim::log