|
35 | 35 | <define name="BOOST_TEST(condition, ...)" value="static_cast<void>(static_cast<bool>(condition))" />
|
36 | 36 | <define name="BOOST_TEST_REQUIRE(condition, ...)" value="static_cast<void>(static_cast<bool>(condition))" />
|
37 | 37 | <define name="BOOST_WARN(condition)" value="static_cast<void>(static_cast<bool>(condition))" />
|
38 |
| - <define name="BOOST_WARN_MESSAGE(condition, msg)" value="static_cast<void>(static_cast<bool>(condition)); std::string(msg)" /> |
| 38 | + <define name="BOOST_WARN_MESSAGE(condition, msg)" value="static_cast<void>(static_cast<bool>(condition)); static_cast<void>(msg)" /> |
39 | 39 | <define name="BOOST_WARN_EQUAL(a, b)" value="static_cast<void>((a) == (b))" />
|
40 | 40 | <define name="BOOST_WARN_NE(a, b)" value="static_cast<void>((a) != (b))" />
|
41 | 41 | <define name="BOOST_WARN_GT(a, b)" value="static_cast<void>((a) > (b))" />
|
42 | 42 | <define name="BOOST_WARN_GE(a, b)" value="static_cast<void>((a) >= (b))" />
|
43 | 43 | <define name="BOOST_WARN_LT(a, b)" value="static_cast<void>((a) < (b))" />
|
44 | 44 | <define name="BOOST_WARN_LE(a, b)" value="static_cast<void>((a) <= (b))" />
|
45 | 45 | <define name="BOOST_CHECK(condition)" value="static_cast<void>(static_cast<bool>(condition))" />
|
46 |
| - <define name="BOOST_CHECK_MESSAGE(condition, msg)" value="static_cast<void>(static_cast<bool>(condition)); std::string(msg)" /> |
| 46 | + <define name="BOOST_CHECK_MESSAGE(condition, msg)" value="static_cast<void>(static_cast<bool>(condition)); static_cast<void>(msg)" /> |
47 | 47 | <define name="BOOST_CHECK_EQUAL(a, b)" value="static_cast<void>((a) == (b))" />
|
48 | 48 | <define name="BOOST_CHECK_NE(a, b)" value="static_cast<void>((a) != (b))" />
|
49 | 49 | <define name="BOOST_CHECK_GT(a, b)" value="static_cast<void>((a) > (b))" />
|
50 | 50 | <define name="BOOST_CHECK_GE(a, b)" value="static_cast<void>((a) >= (b))" />
|
51 | 51 | <define name="BOOST_CHECK_LT(a, b)" value="static_cast<void>((a) < (b))" />
|
52 | 52 | <define name="BOOST_CHECK_LE(a, b)" value="static_cast<void>((a) <= (b))" />
|
53 | 53 | <define name="BOOST_REQUIRE(condition)" value="static_cast<void>(static_cast<bool>(condition))" />
|
54 |
| - <define name="BOOST_REQUIRE_MESSAGE(condition, msg)" value="static_cast<void>(static_cast<bool>(condition)); std::string(msg)" /> |
| 54 | + <define name="BOOST_REQUIRE_MESSAGE(condition, msg)" value="static_cast<void>(static_cast<bool>(condition)); static_cast<void>(msg)" /> |
55 | 55 | <define name="BOOST_REQUIRE_EQUAL(a, b)" value="static_cast<void>(static_cast<bool>((a) == (b)))" />
|
56 | 56 | <define name="BOOST_REQUIRE_NE(a, b)" value="static_cast<void>((a) != (b))" />
|
57 | 57 | <define name="BOOST_REQUIRE_GT(a, b)" value="static_cast<void>((a) > (b))" />
|
|
84 | 84 | <define name="BOOST_MATH_INT_VALUE_SUFFIX" value=""/>
|
85 | 85 | <!-- Tell cppcheck to interpret BOOST_AUTO_TEST_CASE as a function definition -->
|
86 | 86 | <define name="BOOST_AUTO_TEST_CASE(...)" value="void BOOST_AUTO_TEST_CASE_run(__VA_ARGS__)"/>
|
| 87 | + <define name="BOOST_AUTO_TEST_CASE_TEMPLATE(test_name, type_name, TL)" value="template<typename type_name> struct test_name { void test_method(); }; template<typename type_name> void test_name<type_name>::test_method()" /> |
87 | 88 | <define name="BOOST_FIXTURE_TEST_CASE(name, fixture, ...)" value="struct name : fixture { void test_method(); }; void name::test_method()" />
|
88 | 89 | <define name="BOOST_FIXTURE_TEST_CASE_TEMPLATE(test_name, type_name, TL, F)" value="template<typename type_name> struct test_name : public F { void test_method(); }; template<typename type_name> void test_name<type_name>::test_method()" />
|
89 | 90 | <define name="BOOST_DATA_TEST_CASE(...)" value="void BOOST_DATA_TEST_CASE_run(__VA_ARGS__)"/>
|
|
0 commit comments