|
70 | 70 | #define GMOCK_DECLARE_bool_(name) \
|
71 | 71 | namespace testing { \
|
72 | 72 | GTEST_API_ extern bool GMOCK_FLAG(name); \
|
73 |
| - } |
| 73 | + } static_assert(true, "no-op to require trailing semicolon") |
74 | 74 | #define GMOCK_DECLARE_int32_(name) \
|
75 | 75 | namespace testing { \
|
76 | 76 | GTEST_API_ extern int32_t GMOCK_FLAG(name); \
|
77 |
| - } |
| 77 | + } static_assert(true, "no-op to require trailing semicolon") |
78 | 78 | #define GMOCK_DECLARE_string_(name) \
|
79 | 79 | namespace testing { \
|
80 | 80 | GTEST_API_ extern ::std::string GMOCK_FLAG(name); \
|
81 |
| - } |
| 81 | + } static_assert(true, "no-op to require trailing semicolon") |
82 | 82 |
|
83 | 83 | // Macros for defining flags.
|
84 | 84 | #define GMOCK_DEFINE_bool_(name, default_val, doc) \
|
85 | 85 | namespace testing { \
|
86 | 86 | GTEST_API_ bool GMOCK_FLAG(name) = (default_val); \
|
87 |
| - } |
| 87 | + } static_assert(true, "no-op to require trailing semicolon") |
88 | 88 | #define GMOCK_DEFINE_int32_(name, default_val, doc) \
|
89 | 89 | namespace testing { \
|
90 | 90 | GTEST_API_ int32_t GMOCK_FLAG(name) = (default_val); \
|
91 |
| - } |
| 91 | + } static_assert(true, "no-op to require trailing semicolon") |
92 | 92 | #define GMOCK_DEFINE_string_(name, default_val, doc) \
|
93 | 93 | namespace testing { \
|
94 | 94 | GTEST_API_ ::std::string GMOCK_FLAG(name) = (default_val); \
|
95 |
| - } |
| 95 | + } static_assert(true, "no-op to require trailing semicolon") |
96 | 96 | #endif // !defined(GMOCK_DECLARE_bool_)
|
97 | 97 |
|
98 | 98 | #if !defined(GMOCK_FLAG_GET)
|
|
0 commit comments