Commit e305a1c 1 parent 87e92d5 commit e305a1c Copy full SHA for e305a1c
File tree 3 files changed +14
-0
lines changed
compiler/extensions/cpp/runtime
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,9 @@ modernize-use-equals-default:src/zserio/Span.h:79
134
134
# This is completely filtered out because it just would add two more lines making readability even worse.
135
135
readability-braces-around-statements:
136
136
137
+ # This must be preprocessor define because version is checked during compilation time.
138
+ cppcoreguidelines-macro-usage:src/zserio/CppRuntimeVersion.h:12
139
+
137
140
# Intentional tests.
138
141
bugprone-use-after-move:test/zserio/HeapOptionalHolderTest.cpp:178
139
142
bugprone-use-after-move:test/zserio/HeapOptionalHolderTest.cpp:199
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ set(ZSERIO_CPP_RUNTIME_TEST_SRCS
150
150
zserio/BuiltInOperatorsTest.cpp
151
151
zserio/ConstraintExceptionTest.cpp
152
152
zserio/CppRuntimeExceptionTest.cpp
153
+ zserio/CppRuntimeVersionTest.cpp
153
154
zserio/DebugStringUtilTest.cpp
154
155
zserio/EnumsTest.cpp
155
156
zserio/FloatUtilTest.cpp
Original file line number Diff line number Diff line change
1
+ #include " zserio/CppRuntimeVersion.h"
2
+
3
+ #include " gtest/gtest.h"
4
+
5
+ TEST (CppRuntimeVersionTest, checkVersion)
6
+ {
7
+ #if CPP_EXTENSION_RUNTIME_VERSION_NUMBER < 2011000
8
+ #error Zserio runtime library version is too old!
9
+ #endif
10
+ }
You can’t perform that action at this time.
0 commit comments