Feature/compatibilities gcc14 clang14 vcpkg (#124)

This commit is contained in:
Manuel Bellersen
2024-06-27 11:20:51 +02:00
committed by GitHub
parent 1ce78479ac
commit c3db8321b3
376 changed files with 121 additions and 495 deletions
+48 -32
View File
@@ -16,6 +16,15 @@ option(REFLECTCPP_BUILD_TESTS "Build tests" OFF)
option(REFLECTCPP_USE_BUNDLED_DEPENDENCIES "Use the bundled dependencies" ON)
set(REFLECTCPP_USE_VCPKG_DEFAULT OFF)
if(REFLECTCPP_BUILD_BENCHMARKS)
set(REFLECTCPP_BSON ON CACHE BOOL "" FORCE)
set(REFLECTCPP_CBOR ON CACHE BOOL "" FORCE)
set(REFLECTCPP_FLEXBUFFERS ON CACHE BOOL "" FORCE)
set(REFLECTCPP_MSGPACK ON CACHE BOOL "" FORCE)
set(REFLECTCPP_XML ON CACHE BOOL "" FORCE)
set(REFLECTCPP_TOML ON CACHE BOOL "" FORCE)
set(REFLECTCPP_YAML ON CACHE BOOL "" FORCE)
endif()
if (REFLECTCPP_BUILD_TESTS OR REFLECTCPP_BUILD_BENCHMARKS OR REFLECTCPP_BSON OR REFLECTCPP_CBOR OR REFLECTCPP_FLEXBUFFERS OR REFLECTCPP_MSGPACK OR REFLECTCPP_XML OR REFLECTCPP_TOML OR REFLECTCPP_YAML)
# enable vcpkg per default if require features other than JSON
set(REFLECTCPP_USE_VCPKG_DEFAULT ON)
@@ -27,43 +36,52 @@ if (REFLECTCPP_USE_VCPKG)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
endif ()
project(reflectcpp)
project(reflectcpp LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
if(REFLECTCPP_USE_BUNDLED_DEPENDENCIES)
if (REFLECTCPP_BUILD_SHARED)
add_library(reflectcpp SHARED src/yyjson.c)
else()
add_library(reflectcpp STATIC src/yyjson.c)
endif()
else()
if (REFLECTCPP_BUILD_SHARED)
add_library(reflectcpp SHARED)
else()
add_library(reflectcpp STATIC)
endif()
target_sources(reflectcpp PRIVATE src/yyjson.c)
set_source_files_properties(src/yyjson.c PROPERTIES LANGUAGE CXX)
target_compile_features(reflectcpp PUBLIC cxx_std_20)
target_compile_options(reflectcpp PRIVATE $<$<CONFIG:Debug>:-Wall -Wextra>)
target_include_directories(
reflectcpp PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/rfl/thirdparty>)
else()
add_library(reflectcpp INTERFACE)
target_include_directories(
reflectcpp PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include> )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DREFLECTCPP_NO_BUNDLED_DEPENDENCIES")
target_compile_features(reflectcpp INTERFACE cxx_std_20)
find_package(ctre CONFIG REQUIRED)
find_package(yyjson CONFIG REQUIRED)
target_link_libraries(reflectcpp INTERFACE ctre::ctre yyjson::yyjson)
endif()
set_target_properties(reflectcpp PROPERTIES LINKER_LANGUAGE CXX)
target_compile_features(reflectcpp PUBLIC cxx_std_20)
if(REFLECTCPP_USE_BUNDLED_DEPENDENCIES)
target_include_directories(reflectcpp PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/rfl/thirdparty>)
else()
target_include_directories(reflectcpp PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include> )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DREFLECTCPP_NO_BUNDLED_DEPENDENCIES")
find_package(ctre CONFIG REQUIRED)
find_package(yyjson CONFIG REQUIRED)
target_link_libraries(reflectcpp INTERFACE yyjson::yyjson)
endif()
if (REFLECTCPP_BSON OR REFLECTCPP_BUILD_BENCHMARKS)
if (REFLECTCPP_BSON)
find_package(bson-1.0 CONFIG REQUIRED)
target_link_libraries(reflectcpp PRIVATE $<IF:$<TARGET_EXISTS:mongo::bson_static>,mongo::bson_static,mongo::bson_shared>)
target_link_libraries(reflectcpp PRIVATE $<IF:$<TARGET_EXISTS:mongo::bson_static>,mongo::bson_static,mongo::bson_shared>)
endif ()
if (REFLECTCPP_CBOR OR REFLECTCPP_BUILD_BENCHMARKS)
if (REFLECTCPP_CBOR)
if (MSVC)
target_link_libraries(reflectcpp PRIVATE "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/tinycbor${CMAKE_STATIC_LIBRARY_SUFFIX}")
else ()
@@ -71,12 +89,12 @@ if (REFLECTCPP_CBOR OR REFLECTCPP_BUILD_BENCHMARKS)
endif ()
endif ()
if (REFLECTCPP_FLEXBUFFERS OR REFLECTCPP_BUILD_BENCHMARKS)
if (REFLECTCPP_FLEXBUFFERS)
find_package(flatbuffers CONFIG REQUIRED)
target_link_libraries(reflectcpp INTERFACE flatbuffers::flatbuffers)
endif ()
if (REFLECTCPP_MSGPACK OR REFLECTCPP_BUILD_BENCHMARKS)
if (REFLECTCPP_MSGPACK)
find_package(msgpack-c CONFIG REQUIRED)
if (MSVC)
target_link_libraries(reflectcpp PRIVATE "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/msgpack-c${CMAKE_STATIC_LIBRARY_SUFFIX}")
@@ -85,7 +103,7 @@ if (REFLECTCPP_MSGPACK OR REFLECTCPP_BUILD_BENCHMARKS)
endif ()
endif ()
if (REFLECTCPP_TOML OR REFLECTCPP_BUILD_BENCHMARKS)
if (REFLECTCPP_TOML)
if (MSVC)
target_link_libraries(reflectcpp PRIVATE "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/tomlplusplus${CMAKE_STATIC_LIBRARY_SUFFIX}")
else ()
@@ -93,18 +111,16 @@ if (REFLECTCPP_TOML OR REFLECTCPP_BUILD_BENCHMARKS)
endif ()
endif()
if (REFLECTCPP_XML OR REFLECTCPP_BUILD_BENCHMARKS)
if (REFLECTCPP_XML)
find_package(pugixml CONFIG REQUIRED)
target_link_libraries(reflectcpp INTERFACE pugixml::pugixml)
endif ()
if (REFLECTCPP_YAML OR REFLECTCPP_BUILD_BENCHMARKS)
if (REFLECTCPP_YAML)
find_package(yaml-cpp CONFIG REQUIRED)
target_link_libraries(reflectcpp INTERFACE yaml-cpp::yaml-cpp)
endif ()
target_compile_options(reflectcpp PRIVATE -Wall)
if (REFLECTCPP_BUILD_TESTS)
if (MSVC)
set(REFLECT_CPP_GTEST_LIB "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib/gtest${CMAKE_STATIC_LIBRARY_SUFFIX}")
@@ -126,7 +142,7 @@ include(CMakePackageConfigHelpers)
configure_package_config_file(reflectcpp-config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/reflectcpp-config.cmake
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/reflectcpp
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/reflectcpp
)
install(
@@ -138,17 +154,17 @@ file(GLOB_RECURSE RFL_HEADERS RELATIVE ${CMAKE_CURRENT_LIST_DIR} "${CMAKE_CURREN
target_sources(reflectcpp
PUBLIC
FILE_SET reflectcpp_headers
FILE_SET reflectcpp_headers
TYPE HEADERS
BASE_DIRS $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
FILES ${RFL_HEADERS})
install(
TARGETS reflectcpp
EXPORT reflectcpp-exports
FILE_SET reflectcpp_headers DESTINATION ${INCLUDE_INSTALL_DIR}
)
install(
EXPORT reflectcpp-exports
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/reflectcpp
+23 -2
View File
@@ -1,10 +1,10 @@
#ifndef RFL_LITERAL_HPP_
#define RFL_LITERAL_HPP_
#include <compare>
#include <cstdint>
#include <functional>
#include <limits>
#include <stdexcept>
#include <string>
#include <tuple>
#include <type_traits>
@@ -12,7 +12,6 @@
#include "Result.hpp"
#include "internal/StringLiteral.hpp"
#include "internal/VisitTree.hpp"
#include "internal/no_duplicate_field_names.hpp"
namespace rfl {
@@ -180,13 +179,35 @@ class Literal {
/// <=> for strings.
inline auto operator<=>(const std::string& _str) const {
#if __cpp_lib_three_way_comparison >= 201907L
return name() <=> _str;
#else
auto const &const_name = name();
if (const_name < _str) {
return std::strong_ordering::less;
}
if (const_name == _str) {
return std::strong_ordering::equal;
}
return std::strong_ordering::greater;
#endif
}
/// <=> for const char*.
template <internal::StringLiteral... other_fields>
inline auto operator<=>(const char* _str) const {
#if __cpp_lib_three_way_comparison >= 201907L
return name() <=> _str;
#else
auto const &const_name = name();
if (const_name < _str) {
return std::strong_ordering::less;
}
if (const_name == _str) {
return std::strong_ordering::equal;
}
return std::strong_ordering::greater;
#endif
}
/// Equality operator.
+11 -5
View File
@@ -1,10 +1,7 @@
#ifndef RFL_VALIDATOR_HPP_
#define RFL_VALIDATOR_HPP_
#include <concepts>
#include <functional>
#include <optional>
#include <regex>
#include <string>
#include <type_traits>
#include <utility>
@@ -12,12 +9,11 @@
#include "AllOf.hpp"
#include "Result.hpp"
#include "internal/HasValidation.hpp"
#include "internal/StringLiteral.hpp"
namespace rfl {
template <class T, class V, class... Vs>
requires internal::HasValidation<AllOf<V, Vs...>, T>
requires internal::HasValidation<AllOf<V, Vs...>, T>
struct Validator {
public:
using ReflectionType = T;
@@ -114,7 +110,17 @@ struct Validator {
template <class T, class V, class... Vs>
inline auto operator<=>(const Validator<T, V, Vs...>& _v1,
const Validator<T, V, Vs...>& _v2) {
#if __cpp_lib_three_way_comparison >= 201907L
return _v1.value() <=> _v2.value();
#else
if (_v1.value() < _v2.value()) {
return std::strong_ordering::less;
} else if (_v1.value() > _v2.value()) {
return std::strong_ordering::greater;
} else {
return std::strong_ordering::equal;
}
#endif
}
template <class T, class V, class... Vs>
-9
View File
@@ -3,21 +3,12 @@
#include <cbor.h>
#include <array>
#include <concepts>
#include <exception>
#include <map>
#include <memory>
#include <source_location>
#include <sstream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <type_traits>
#include <unordered_map>
#include <vector>
#include "../Box.hpp"
#include "../Result.hpp"
#include "../always_false.hpp"
@@ -2,9 +2,12 @@
#define RFL_INTERNAL_ENUMS_GET_ENUM_NAMES_HPP_
#include <limits>
#include <source_location>
#include <type_traits>
#if __has_include(<source_location>)
#include <source_location>
#endif
#include "../../Literal.hpp"
#include "../../define_literal.hpp"
#include "../../internal/remove_namespaces.hpp"
@@ -43,11 +46,11 @@ template <auto e>
consteval auto get_enum_name_str_view() {
// Unfortunately, we cannot avoid the use of a compiler-specific macro for
// Clang on Windows. For all other compilers, function_name works as intended.
#if defined(__clang__) && defined(_MSC_VER)
const auto func_name = std::string_view{__PRETTY_FUNCTION__};
#else
#if __cpp_lib_source_location >= 201907L
const auto func_name =
std::string_view{std::source_location::current().function_name()};
#else
const auto func_name = std::string_view{__PRETTY_FUNCTION__};
#endif
#if defined(__clang__)
const auto split = func_name.substr(0, func_name.size() - 1);
+7 -10
View File
@@ -1,18 +1,15 @@
#ifndef RFL_INTERNAL_GETFIELDNAMES_HPP_
#define RFL_INTERNAL_GETFIELDNAMES_HPP_
#include <array>
#include <iostream>
#include <memory>
#include <source_location>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#if __has_include(<source_location>)
#include <source_location>
#endif
#include "../Literal.hpp"
#include "bind_fake_object_to_tuple.hpp"
#include "get_fake_object.hpp"
#include "is_flatten_field.hpp"
#include "is_rename.hpp"
#include "num_fields.hpp"
@@ -44,11 +41,11 @@ template <class T, auto ptr>
consteval auto get_field_name_str_view() {
// Unfortunately, we cannot avoid the use of a compiler-specific macro for
// Clang on Windows. For all other compilers, function_name works as intended.
#if defined(__clang__) && defined(_MSC_VER)
const auto func_name = std::string_view{__PRETTY_FUNCTION__};
#else
#if __cpp_lib_source_location >= 201907L
const auto func_name =
std::string_view{std::source_location::current().function_name()};
#else
const auto func_name = std::string_view{__PRETTY_FUNCTION__};
#endif
#if defined(__clang__)
const auto split = func_name.substr(0, func_name.size() - 2);
+9 -5
View File
@@ -1,10 +1,14 @@
#ifndef RFL_INTERNAL_GETTYPENAME_HPP_
#define RFL_INTERNAL_GETTYPENAME_HPP_
#include <source_location>
#include <string>
#include <utility>
#include "StringLiteral.hpp"
#if __has_include(<source_location>)
#include <source_location>
#endif
namespace rfl {
namespace internal {
@@ -12,11 +16,11 @@ template <class T>
consteval auto get_type_name_str_view() {
// Unfortunately, we cannot avoid the use of a compiler-specific macro for
// Clang on Windows. For all other compilers, function_name works as intended.
#if defined(__clang__) && defined(_MSC_VER)
const auto func_name = std::string_view{__PRETTY_FUNCTION__};
#else
#if __cpp_lib_source_location >= 201907L
const auto func_name =
std::string_view{std::source_location::current().function_name()};
#else
const auto func_name = std::string_view{__PRETTY_FUNCTION__};
#endif
#if defined(__clang__)
const auto split = func_name.substr(0, func_name.size() - 1);
@@ -1,7 +1,6 @@
#ifndef RFL_INTERNAL_REMOVE_NAMESPACES_HPP_
#define RFL_INTERNAL_REMOVE_NAMESPACES_HPP_
#include <source_location>
#include <string_view>
#include <utility>
+1 -1
View File
@@ -21,7 +21,7 @@ struct StdArrayType<T[_n]> {
};
template <class T>
using to_std_array_t = StdArrayType<T>::Type;
using to_std_array_t = typename StdArrayType<T>::Type;
template <class T>
auto to_std_array(T&& _t) {
+2 -13
View File
@@ -3,21 +3,11 @@
#include <msgpack.h>
#include <array>
#include <concepts>
#include <exception>
#include <map>
#include <memory>
#include <source_location>
#include <sstream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <type_traits>
#include <unordered_map>
#include <vector>
#include "../Box.hpp"
#include "../Result.hpp"
#include "../always_false.hpp"
@@ -30,9 +20,8 @@ struct Reader {
using InputVarType = msgpack_object;
template <class T>
static constexpr bool has_custom_constructor = (requires(InputVarType var) {
T::from_msgpack_obj(var);
});
static constexpr bool has_custom_constructor =
(requires(InputVarType var) { T::from_msgpack_obj(var); });
rfl::Result<InputVarType> get_field_from_array(
const size_t _idx, const InputArrayType _arr) const noexcept {
+1 -1
View File
@@ -47,7 +47,7 @@ struct Parser {
using ReflectionType = std::remove_cvref_t<typename T::ReflectionType>;
const auto wrap_in_t = [](auto _named_tuple) -> Result<T> {
try {
return T(_named_tuple);
return T{_named_tuple};
} catch (std::exception& e) {
return Error(e.what());
}
+1 -1
View File
@@ -17,7 +17,7 @@ inline auto visit(const Visitor& _visitor, const Literal<_fields...> _literal,
const Args&... _args) {
constexpr int size = sizeof...(_fields);
using WrapperType = internal::VisitorWrapper<Visitor, _fields...>;
const auto wrapper = WrapperType(&_visitor);
const auto wrapper = WrapperType{&_visitor};
return internal::VisitTree::visit<0, size, WrapperType>(
wrapper, _literal.value(), _args...);
}
-1
View File
@@ -1,5 +1,4 @@
#include <iostream>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -2,7 +2,6 @@
#include <iostream>
#include <memory>
#include <rfl/bson.hpp>
#include <source_location>
#include <string>
// Make sure things still compile when
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,5 +1,4 @@
#include <iostream>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-3
View File
@@ -1,9 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
#include "write_and_read.hpp"
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -2,7 +2,6 @@
#include <map>
#include <memory>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <unordered_map>
-1
View File
@@ -1,7 +1,6 @@
#include <iostream>
#include <map>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include "write_and_read.hpp"
@@ -1,7 +1,6 @@
#include <iostream>
#include <map>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include "write_and_read.hpp"
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -2,7 +2,6 @@
#include <iostream>
#include <rfl.hpp>
#include <rfl/bson.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
@@ -1,5 +1,4 @@
#include <iostream>
#include <source_location>
#include <string>
#include <vector>
@@ -1,5 +1,4 @@
#include <iostream>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -2,7 +2,6 @@
#include <map>
#include <memory>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include "write_and_read.hpp"
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <ctime>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <iostream>
#include <memory>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,5 +1,4 @@
#include <iostream>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -2,7 +2,6 @@
#include <iostream>
#include <memory>
#include <rfl/cbor.hpp>
#include <source_location>
#include <string>
// Make sure things still compile when
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,5 +1,4 @@
#include <iostream>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -2,7 +2,6 @@
#include <map>
#include <memory>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <unordered_map>
-1
View File
@@ -1,7 +1,6 @@
#include <iostream>
#include <map>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include "write_and_read.hpp"
@@ -1,7 +1,6 @@
#include <iostream>
#include <map>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include "write_and_read.hpp"
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -2,7 +2,6 @@
#include <iostream>
#include <rfl.hpp>
#include <rfl/cbor.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,6 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
@@ -1,5 +1,4 @@
#include <iostream>
#include <source_location>
#include <string>
#include <vector>
@@ -1,5 +1,4 @@
#include <iostream>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -2,7 +2,6 @@
#include <map>
#include <memory>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include "write_and_read.hpp"
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <ctime>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <iostream>
#include <memory>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
@@ -1,5 +1,4 @@
#include <iostream>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -2,7 +2,6 @@
#include <iostream>
#include <memory>
#include <rfl/flexbuf.hpp>
#include <source_location>
#include <string>
// Make sure things still compile when
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
@@ -1,5 +1,4 @@
#include <iostream>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-4
View File
@@ -1,8 +1,5 @@
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
#include "write_and_read.hpp"
@@ -24,6 +21,5 @@ TEST(flexbuf, test_default_values) {
Person{.first_name = "Homer", .children = std::move(children)};
write_and_read(homer);
}
} // namespace test_deque
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-1
View File
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
@@ -1,7 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
-3
View File
@@ -1,9 +1,6 @@
#include <cassert>
#include <iostream>
#include <rfl.hpp>
#include <source_location>
#include <string>
#include <vector>
#include "write_and_read.hpp"

Some files were not shown because too many files have changed in this diff Show More