Skip to content

Commit 0c77022

Browse files
committed
Add c++20 lines to test
1 parent d1ff6d1 commit 0c77022

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#include <iostream>
2+
#include <vector>
23
#include <ystdlib/testlib/hello.hpp>
34

45
[[nodiscard]] auto main() -> int {
6+
constexpr std::vector<int> cV;
57
std::cout << ystdlib::testlib::hello() << '\n';
68
return 0;
79
}

taskfiles/lint-cpp.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ tasks:
1717
desc: "Runs the C++ linters that identify formatting issues."
1818
sources: &cpp_format_src_files
1919
- "{{.G_LINT_VENV_CHECKSUM_FILE}}"
20-
- "{{.G_YSTDLIB_CPP_SRC_DIR}}/**/*.cpp"
21-
- "{{.G_YSTDLIB_CPP_SRC_DIR}}/**/*.h"
22-
- "{{.G_YSTDLIB_CPP_SRC_DIR}}/**/*.hpp"
20+
- "{{.G_CPP_SRC_DIR}}/**/*.cpp"
21+
- "{{.G_CPP_SRC_DIR}}/**/*.h"
22+
- "{{.G_CPP_SRC_DIR}}/**/*.hpp"
2323
- "{{.ROOT_DIR}}/.clang-format"
2424
- "{{.TASKFILE}}"
2525
deps:
@@ -59,9 +59,9 @@ tasks:
5959
- "{{.G_CMAKE_CACHE}}"
6060
- "{{.G_COMPILE_COMMANDS_DB}}"
6161
- "{{.G_LINT_VENV_CHECKSUM_FILE}}"
62-
- "{{.G_YSTDLIB_CPP_SRC_DIR}}/**/*.cpp"
63-
- "{{.G_YSTDLIB_CPP_SRC_DIR}}/**/*.h"
64-
- "{{.G_YSTDLIB_CPP_SRC_DIR}}/**/*.hpp"
62+
- "{{.G_CPP_SRC_DIR}}/**/*.cpp"
63+
- "{{.G_CPP_SRC_DIR}}/**/*.h"
64+
- "{{.G_CPP_SRC_DIR}}/**/*.hpp"
6565
- "{{.ROOT_DIR}}/.clang-tidy"
6666
- "{{.TASKFILE}}"
6767
deps:

0 commit comments

Comments
 (0)