From fc247a5b830dc6aea3bb063e09930ef3920009de Mon Sep 17 00:00:00 2001 From: chatlanin Date: Tue, 30 Sep 2025 19:56:27 +0300 Subject: [PATCH] change clangd on ccls --- .ccls | 4 ++++ .gitignore | 1 + bin/examples/logger/main.cpp | 12 ++++++++++-- bin/meson.build | 4 ++-- meson.build | 2 +- 5 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 .ccls diff --git a/.ccls b/.ccls new file mode 100644 index 0000000..bd429fb --- /dev/null +++ b/.ccls @@ -0,0 +1,4 @@ +clang +-std=c++20 +-Iinclude +-Isrc diff --git a/.gitignore b/.gitignore index 1e66285..01e72c4 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build .cache +.ccls-cache subprojects/* !subprojects/catch2.wrap diff --git a/bin/examples/logger/main.cpp b/bin/examples/logger/main.cpp index 802587c..ef72a9a 100644 --- a/bin/examples/logger/main.cpp +++ b/bin/examples/logger/main.cpp @@ -48,7 +48,7 @@ auto main(int argc, char *argv[]) -> int hack::log()(mi); hack::log()(mmi); hack::log()(umi); - hack::log()(tp); + hack::log()("tuple:", tp); hack::log()(true); hack::log().bool_as_number(); hack::log()(true); @@ -64,6 +64,14 @@ auto main(int argc, char *argv[]) -> int hack::error()("error"); hack::log()(rb); + + hack::log()(str.c_str()); + hack::log()(str); + + // HERE + // реализовать это ... + // std::filesystem::path p { "/test/file/path.txt" }; + // hack::log()(p); + return 0; } - diff --git a/bin/meson.build b/bin/meson.build index 86f0c2a..178ba33 100755 --- a/bin/meson.build +++ b/bin/meson.build @@ -5,8 +5,8 @@ executable( # 'examples/math/main.cpp', # 'examples/range/main.cpp', # 'examples/patterns/main.cpp', - # 'examples/logger/main.cpp', - 'examples/exception/main.cpp', + 'examples/logger/main.cpp', + # 'examples/exception/main.cpp', dependencies : deps, cpp_args: args, include_directories : inc diff --git a/meson.build b/meson.build index 38d3c5f..9fa2fc8 100755 --- a/meson.build +++ b/meson.build @@ -5,7 +5,7 @@ project( default_options : [ 'warning_level=1', 'optimization=3', - 'cpp_std=c++20', + 'cpp_std=c++20' ]) add_project_arguments (