change clangd on ccls

This commit is contained in:
2025-09-30 19:56:27 +03:00
parent 1604577286
commit fc247a5b83
5 changed files with 18 additions and 5 deletions

4
.ccls Normal file
View File

@@ -0,0 +1,4 @@
clang
-std=c++20
-Iinclude
-Isrc

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
build build
.cache .cache
.ccls-cache
subprojects/* subprojects/*
!subprojects/catch2.wrap !subprojects/catch2.wrap

View File

@@ -48,7 +48,7 @@ auto main(int argc, char *argv[]) -> int
hack::log()(mi); hack::log()(mi);
hack::log()(mmi); hack::log()(mmi);
hack::log()(umi); hack::log()(umi);
hack::log()(tp); hack::log()("tuple:", tp);
hack::log()(true); hack::log()(true);
hack::log().bool_as_number(); hack::log().bool_as_number();
hack::log()(true); hack::log()(true);
@@ -64,6 +64,14 @@ auto main(int argc, char *argv[]) -> int
hack::error()("error"); hack::error()("error");
hack::log()(rb); 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; return 0;
} }

View File

@@ -5,8 +5,8 @@ executable(
# 'examples/math/main.cpp', # 'examples/math/main.cpp',
# 'examples/range/main.cpp', # 'examples/range/main.cpp',
# 'examples/patterns/main.cpp', # 'examples/patterns/main.cpp',
# 'examples/logger/main.cpp', 'examples/logger/main.cpp',
'examples/exception/main.cpp', # 'examples/exception/main.cpp',
dependencies : deps, dependencies : deps,
cpp_args: args, cpp_args: args,
include_directories : inc include_directories : inc

View File

@@ -5,7 +5,7 @@ project(
default_options : [ default_options : [
'warning_level=1', 'warning_level=1',
'optimization=3', 'optimization=3',
'cpp_std=c++20', 'cpp_std=c++20'
]) ])
add_project_arguments ( add_project_arguments (