mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 14:09:02 +07:00
update submodules
This commit is contained in:
@@ -11,15 +11,22 @@ add_subdirectory(vendors/enum.hpp)
|
|||||||
add_subdirectory(vendors/kari.hpp)
|
add_subdirectory(vendors/kari.hpp)
|
||||||
|
|
||||||
add_library(${PROJECT_NAME} INTERFACE)
|
add_library(${PROJECT_NAME} INTERFACE)
|
||||||
|
target_link_libraries(${PROJECT_NAME} INTERFACE enum.hpp kari.hpp)
|
||||||
|
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_17)
|
||||||
|
target_include_directories(${PROJECT_NAME} INTERFACE headers)
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME}
|
target_compile_options(${PROJECT_NAME}
|
||||||
INTERFACE enum.hpp kari.hpp)
|
INTERFACE
|
||||||
|
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
||||||
target_compile_features(${PROJECT_NAME}
|
-Wno-c++98-compat-pedantic
|
||||||
INTERFACE cxx_std_17)
|
-Wno-covered-switch-default
|
||||||
|
-Wno-ctad-maybe-unsupported
|
||||||
target_include_directories(${PROJECT_NAME}
|
-Wno-exit-time-destructors
|
||||||
INTERFACE headers)
|
-Wno-padded
|
||||||
|
-Wno-poison-system-directories
|
||||||
|
-Wno-shadow
|
||||||
|
-Wno-unknown-warning-option
|
||||||
|
-Wno-weak-vtables>)
|
||||||
|
|
||||||
if(BUILD_AS_STANDALONE)
|
if(BUILD_AS_STANDALONE)
|
||||||
option(BUILD_WITH_UNTESTS "Build with unit tests" ON)
|
option(BUILD_WITH_UNTESTS "Build with unit tests" ON)
|
||||||
|
|||||||
@@ -29,9 +29,6 @@ target_compile_options(${PROJECT_NAME}
|
|||||||
-Werror -Wall -Wextra -Wpedantic>
|
-Werror -Wall -Wextra -Wpedantic>
|
||||||
PRIVATE
|
PRIVATE
|
||||||
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
||||||
-Werror -Weverything -Wconversion -Wno-unknown-warning-option
|
-Werror -Weverything -Wconversion>)
|
||||||
-Wno-padded
|
|
||||||
-Wno-c++98-compat-pedantic
|
|
||||||
-Wno-shadow-field-in-constructor>)
|
|
||||||
|
|
||||||
add_test(${PROJECT_NAME} ${PROJECT_NAME})
|
add_test(${PROJECT_NAME} ${PROJECT_NAME})
|
||||||
|
|||||||
@@ -18,9 +18,9 @@ namespace
|
|||||||
int x{};
|
int x{};
|
||||||
int y{};
|
int y{};
|
||||||
|
|
||||||
ivec2() = default;
|
[[maybe_unused]] ivec2() = default;
|
||||||
explicit ivec2(int v): x{v}, y{v} {}
|
[[maybe_unused]] explicit ivec2(int v): x{v}, y{v} {}
|
||||||
ivec2(int x, int y): x{x}, y{y} {}
|
[[maybe_unused]] ivec2(int x, int y): x{x}, y{y} {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ namespace
|
|||||||
int y{};
|
int y{};
|
||||||
};
|
};
|
||||||
|
|
||||||
void arg_copy(ivec2) {}
|
[[maybe_unused]] void arg_copy(ivec2) {}
|
||||||
void arg_ref_noexcept(ivec2&) noexcept {}
|
[[maybe_unused]] void arg_ref_noexcept(ivec2&) noexcept {}
|
||||||
void arg_cref_noexcept(const ivec2&) noexcept {}
|
[[maybe_unused]] void arg_cref_noexcept(const ivec2&) noexcept {}
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("features/types/function") {
|
TEST_CASE("features/types/function") {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace
|
|||||||
int x{};
|
int x{};
|
||||||
int y{};
|
int y{};
|
||||||
|
|
||||||
int& at(std::size_t i) {
|
[[maybe_unused]] int& at(std::size_t i) {
|
||||||
switch ( i ) {
|
switch ( i ) {
|
||||||
case 0: return x;
|
case 0: return x;
|
||||||
case 1: return y;
|
case 1: return y;
|
||||||
@@ -26,7 +26,7 @@ namespace
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int length2() const noexcept {
|
[[maybe_unused]] int length2() const noexcept {
|
||||||
return x * x + y * y;
|
return x * x + y * y;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
2
vendors/enum.hpp
vendored
2
vendors/enum.hpp
vendored
Submodule vendors/enum.hpp updated: 0a549d3341...ba3d7db0ad
2
vendors/kari.hpp
vendored
2
vendors/kari.hpp
vendored
Submodule vendors/kari.hpp updated: c52226f855...c6f6a73a4f
Reference in New Issue
Block a user