File tree Expand file tree Collapse file tree 15 files changed +33
-25
lines changed Expand file tree Collapse file tree 15 files changed +33
-25
lines changed Original file line number Diff line number Diff line change 11/generated-includes /
22/build /
33/Testing /
4- /cmake-build *
4+ /cmake-build *
5+ /venv /
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ target_sources(Cib
2121
2222add_custom_command (
2323 DEPENDS
24+ ${CMAKE_SOURCE_DIR} /tools/gen_release_header.py
2425 ${CMAKE_SOURCE_DIR} /include /cib/*
2526 ${CMAKE_SOURCE_DIR} /include /cib/detail/*
2627 COMMAND
Original file line number Diff line number Diff line change 1- #ifndef COMPILE_TIME_INIT_BUILD_BUILDER_META_HPP
2- #define COMPILE_TIME_INIT_BUILD_BUILDER_META_HPP
3-
4-
51#include " detail/compiler.hpp"
62
73#include < utility>
84
95
6+ #ifndef COMPILE_TIME_INIT_BUILD_BUILDER_META_HPP
7+ #define COMPILE_TIME_INIT_BUILD_BUILDER_META_HPP
8+
9+
1010namespace cib {
1111 template <
1212 typename BuilderT,
Original file line number Diff line number Diff line change 1- #ifndef COMPILE_TIME_INIT_BUILD_BUILT_HPP
2- #define COMPILE_TIME_INIT_BUILD_BUILT_HPP
1+ #include " builder_meta.hpp"
32
43
5- #include " builder_meta.hpp"
4+ #ifndef COMPILE_TIME_INIT_BUILD_BUILT_HPP
5+ #define COMPILE_TIME_INIT_BUILD_BUILT_HPP
66
77
88namespace cib {
Original file line number Diff line number Diff line change 1- #ifndef COMPILE_TIME_INIT_BUILD_CALLBACK_HPP
2- #define COMPILE_TIME_INIT_BUILD_CALLBACK_HPP
3-
4-
51#include " builder_meta.hpp"
62#include " detail/meta.hpp"
73#include " detail/compiler.hpp"
106#include < type_traits>
117
128
9+ #ifndef COMPILE_TIME_INIT_BUILD_CALLBACK_HPP
10+ #define COMPILE_TIME_INIT_BUILD_CALLBACK_HPP
11+
12+
1313namespace cib {
1414 /* *
1515 * Extension point/builder for simple callbacks.
Original file line number Diff line number Diff line change 3131
3232/*
3333 * cib - Compile-time Initialization and Build
34+ * ..~~VERSION~~..
35+ *
36+ * For the documentation and the latest version, see the official github repo:
3437 * https://github.com/intel/compile-time-init-build
3538 */
3639
Original file line number Diff line number Diff line change 1- #ifndef COMPILE_TIME_INIT_BUILD_CONFIG_HPP
2- #define COMPILE_TIME_INIT_BUILD_CONFIG_HPP
3-
4-
51#include " detail/compiler.hpp"
62#include " detail/meta.hpp"
73#include " builder_meta.hpp"
106#include < type_traits>
117
128
9+ #ifndef COMPILE_TIME_INIT_BUILD_CONFIG_HPP
10+ #define COMPILE_TIME_INIT_BUILD_CONFIG_HPP
11+
12+
1313namespace cib {
1414 namespace detail {
1515 template <typename Lhs, typename Rhs>
Original file line number Diff line number Diff line change 1- #ifndef COMPILE_TIME_INIT_BUILD_META_HPP
2- #define COMPILE_TIME_INIT_BUILD_META_HPP
3-
4-
51#include " compiler.hpp"
62
73#include < tuple>
84#include < type_traits>
95
106
7+ #ifndef COMPILE_TIME_INIT_BUILD_META_HPP
8+ #define COMPILE_TIME_INIT_BUILD_META_HPP
9+
10+
1111namespace cib ::detail {
1212 template <int value>
1313 CIB_CONSTEXPR auto int_ = std::integral_constant<int , value>{};
Original file line number Diff line number Diff line change 1- #ifndef COMPILE_TIME_INIT_BUILD_NEXUS_HPP
2- #define COMPILE_TIME_INIT_BUILD_NEXUS_HPP
3-
4-
51#include " detail/compiler.hpp"
62#include " detail/meta.hpp"
73#include " built.hpp"
84
95#include < type_traits>
106
117
8+ #ifndef COMPILE_TIME_INIT_BUILD_NEXUS_HPP
9+ #define COMPILE_TIME_INIT_BUILD_NEXUS_HPP
10+
11+
1212namespace cib {
1313 template <typename ConfigT>
1414 struct initialized_builders {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ project(compile_time_init_build)
33
44set (CMAKE_CXX_STANDARD 17)
55
6- add_executable (tests test_meta .cpp test_builder_meta .cpp test_callback .cpp test_nexus .cpp)
6+ add_executable (tests detail/meta .cpp builder_meta .cpp callback .cpp nexus .cpp)
77
88if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
99 target_compile_options (tests
You can’t perform that action at this time.
0 commit comments