File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636.vscode
3737build
3838Testing
39+ build- *
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.8 )
1+ cmake_minimum_required (VERSION 3.15 )
22
33add_subdirectory (rscpp )
44
@@ -133,10 +133,20 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
133133 target_link_options (ReCpp PUBLIC "-latomic" )
134134endif ()
135135
136+ set (RECPP_COMPILATION_FLAGS ${RSCPP_COMPILATION_FLAGS} )
137+
136138if (WIN32 )
137- target_compile_options (ReCpp PUBLIC /WX )
139+ set (RECPP_COMPILATION_FLAGS
140+ /W4
141+ /WX
142+ /wd4503
143+ /wd4702
144+ /bigobj
145+ )
138146elseif (UNIX )
139- target_compile_options (ReCpp PUBLIC -Werror )
147+ set (RECPP_COMPILATION_FLAGS
148+ -Wall -Werror
149+ )
140150endif ()
141151
142152set_property (TARGET ReCpp PROPERTY CXX_STANDARD 17)
Original file line number Diff line number Diff line change 1+ {
2+ "version" : 2 ,
3+ "configurePresets" : [
4+ {
5+ "name" : " debug" ,
6+ "generator" : " Ninja" ,
7+ "binaryDir" : " ${sourceDir}/build-debug" ,
8+ "cacheVariables" : {
9+ "CMAKE_BUILD_TYPE" : " Debug"
10+ }
11+ },
12+ {
13+ "name" : " build-debug-asan" ,
14+ "inherits" : " debug" ,
15+ "binaryDir" : " ${sourceDir}/build-debug-asan" ,
16+ "cacheVariables" : {
17+ "USE_ASAN" : " ON"
18+ }
19+ },
20+ {
21+ "name" : " release" ,
22+ "generator" : " Ninja" ,
23+ "binaryDir" : " ${sourceDir}/build-release" ,
24+ "cacheVariables" : {
25+ "CMAKE_BUILD_TYPE" : " Release"
26+ }
27+ },
28+ {
29+ "name" : " profile" ,
30+ "generator" : " Ninja" ,
31+ "binaryDir" : " ${sourceDir}/build-profile" ,
32+ "cacheVariables" : {
33+ "CMAKE_BUILD_TYPE" : " RelWithDebInfo"
34+ }
35+ }
36+ ],
37+ "buildPresets" : [
38+ {
39+ "name" : " build-debug" ,
40+ "configurePreset" : " debug"
41+ },
42+ {
43+ "name" : " build-release" ,
44+ "configurePreset" : " release"
45+ },
46+ {
47+ "name" : " build-profile" ,
48+ "configurePreset" : " profile"
49+ }
50+ ],
51+ "testPresets" : [
52+ {
53+ "name" : " test-debug" ,
54+ "configurePreset" : " debug" ,
55+ "output" : {
56+ "outputOnFailure" : true
57+ }
58+ },
59+ {
60+ "name" : " test-release" ,
61+ "configurePreset" : " release" ,
62+ "output" : {
63+ "outputOnFailure" : true
64+ }
65+ }
66+ ]
67+ }
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.8 )
1+ cmake_minimum_required (VERSION 3.15 )
22
33project (ReCpp-test
44 VERSION 0.0.0
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.8 )
1+ cmake_minimum_required (VERSION 3.15 )
22
33project (ReCpp-test
44 VERSION 0.0.0
Original file line number Diff line number Diff line change 11#pragma once
22
3+ #ifdef max
4+ #undef max
5+ #endif
6+
7+ #ifdef min
8+ #undef min
9+ #endif
10+
311#include < limits>
412
513template <typename T, typename R>
Original file line number Diff line number Diff line change 11#pragma once
22
3+ #ifdef max
4+ #undef max
5+ #endif
6+
7+ #ifdef min
8+ #undef min
9+ #endif
10+
311#include < limits>
412
513template <typename T, typename R>
Original file line number Diff line number Diff line change 11#pragma once
22
3+ #ifdef max
4+ #undef max
5+ #endif
6+
7+ #ifdef min
8+ #undef min
9+ #endif
10+
311#include < limits>
412
513template <typename T>
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ recpp::subscriptions::EmptySubscription<T>::Impl::Impl(const rscpp::Subscriber<T
1515template <typename T>
1616void recpp::subscriptions::EmptySubscription<T>::Impl::request(std::size_t count)
1717{
18+ (void )count;
19+
1820 if (!m_completed)
1921 {
2022 m_completed = true ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ recpp::subscriptions::NeverSubscription<T>::Impl::Impl(const rscpp::Subscriber<T
1515template <typename T>
1616void recpp::subscriptions::NeverSubscription<T>::Impl::request(std::size_t count)
1717{
18+ (void )count;
1819}
1920
2021template <typename T>
You can’t perform that action at this time.
0 commit comments