File tree 8 files changed +35
-12
lines changed
8 files changed +35
-12
lines changed Original file line number Diff line number Diff line change 1
1
add_subdirectory (containers)
2
2
add_subdirectory (error_handling)
3
3
add_subdirectory (io_interface)
4
+ add_subdirectory (wrapped_facade_headers)
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ cpp_library(
7
7
WriterInterface.hpp
8
8
PRIVATE_SOURCES
9
9
ReaderInterface.cpp
10
+ PUBLIC_LINK_LIBRARIES
11
+ ystdlib::wrapped_facade_headers
10
12
TESTS_SOURCES
11
13
test /test_ReaderInterface.cpp
12
14
test /test_WriterInterface.cpp
Original file line number Diff line number Diff line change 1
1
#ifndef YSTDLIB_IO_INTERFACE_READERINTERFACE_HPP
2
2
#define YSTDLIB_IO_INTERFACE_READERINTERFACE_HPP
3
3
4
- // TODO: https://github.com/y-scope/ystdlib-cpp/issues/50
5
- // NOLINTNEXTLINE(misc-include-cleaner)
6
- #include < sys/types.h>
7
-
8
4
#include < cstddef>
9
5
#include < string>
10
6
7
+ #include < ystdlib/wrapped_facade_headers/sys/types.h>
8
+
11
9
#include " ErrorCode.hpp"
12
10
13
11
namespace ystdlib ::io_interface {
@@ -77,8 +75,6 @@ class ReaderInterface {
77
75
* Seeks from the current position to the next position by the given offset amount.
78
76
* @param offset
79
77
*/
80
- // TODO: https://github.com/y-scope/ystdlib-cpp/issues/50
81
- // NOLINTNEXTLINE(misc-include-cleaner)
82
78
[[nodiscard]] virtual auto seek_from_current (off_t offset) -> ErrorCode = 0;
83
79
84
80
/* *
Original file line number Diff line number Diff line change 1
1
#ifndef YSTDLIB_IO_INTERFACE_WRITERINTERFACE_HPP
2
2
#define YSTDLIB_IO_INTERFACE_WRITERINTERFACE_HPP
3
3
4
- // TODO: https://github.com/y-scope/ystdlib-cpp/issues/50
5
- // NOLINTNEXTLINE(misc-include-cleaner)
6
- #include < sys/types.h>
7
-
8
4
#include < cstddef>
9
5
#include < string>
10
6
7
+ #include < ystdlib/wrapped_facade_headers/sys/types.h>
8
+
11
9
#include " ErrorCode.hpp"
12
10
13
11
namespace ystdlib ::io_interface {
@@ -71,8 +69,6 @@ class WriterInterface {
71
69
* Seeks from the current position to the next position by the given offset amount.
72
70
* @param offset
73
71
*/
74
- // TODO: https://github.com/y-scope/ystdlib-cpp/issues/50
75
- // NOLINTNEXTLINE(misc-include-cleaner)
76
72
[[nodiscard]] virtual auto seek_from_current (off_t offset) -> ErrorCode = 0;
77
73
78
74
/* *
Original file line number Diff line number Diff line change
1
+ cpp_library(
2
+ NAME wrapped_facade_headers
3
+ NAMESPACE ystdlib
4
+ PUBLIC_HEADERS
5
+ sys/types.h
6
+ TESTS_SOURCES
7
+ test /test_off_t.cpp
8
+ )
Original file line number Diff line number Diff line change
1
+ // clang-format off
2
+ // IWYU pragma: begin_exports
3
+ #include <sys/types.h>
4
+
5
+ #if defined(__APPLE__ )
6
+ #include <sys/_types/_off_t.h>
7
+ #endif
8
+ // IWYU pragma: end_exports
9
+ // clang-format on
Original file line number Diff line number Diff line change
1
+ #include < ystdlib/wrapped_facade_headers/sys/types.h>
2
+
3
+ #include < catch2/catch_test_macros.hpp>
4
+
5
+ namespace ystdlib ::wrapped_facade_headers::test {
6
+ TEST_CASE (" test_off_t" , " [wrapped_facade_headers][off_t]" ) {
7
+ off_t const i{0 };
8
+ REQUIRE ((0 == i));
9
+ }
10
+ } // namespace ystdlib::wrapped_facade_headers::test
Original file line number Diff line number Diff line change 20
20
- " all"
21
21
- " containers"
22
22
- " error_handling"
23
+ - " wrapped_facade_headers"
23
24
24
25
tasks :
25
26
clean :
You can’t perform that action at this time.
0 commit comments