summaryrefslogtreecommitdiffstats
path: root/googlemock/include/gmock
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-09-20 00:45:00 (GMT)
committerdinord <dinor@google.com>2021-09-23 23:31:03 (GMT)
commitde34ef4e4c6cbfeff9310898d3a773f037ad46f0 (patch)
tree948636054f448460af6c8fdc7e0d7883783de7a4 /googlemock/include/gmock
parent40dfd4b775a66979ad1bd19321cdfd0feadfea27 (diff)
downloadgoogletest-de34ef4e4c6cbfeff9310898d3a773f037ad46f0.zip
googletest-de34ef4e4c6cbfeff9310898d3a773f037ad46f0.tar.gz
googletest-de34ef4e4c6cbfeff9310898d3a773f037ad46f0.tar.bz2
Internal change
PiperOrigin-RevId: 397651677
Diffstat (limited to 'googlemock/include/gmock')
-rw-r--r--googlemock/include/gmock/internal/gmock-port.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/googlemock/include/gmock/internal/gmock-port.h b/googlemock/include/gmock/internal/gmock-port.h
index 7ec0730..5d3e0e5 100644
--- a/googlemock/include/gmock/internal/gmock-port.h
+++ b/googlemock/include/gmock/internal/gmock-port.h
@@ -70,29 +70,29 @@
#define GMOCK_DECLARE_bool_(name) \
namespace testing { \
GTEST_API_ extern bool GMOCK_FLAG(name); \
- }
+ } static_assert(true, "no-op to require trailing semicolon")
#define GMOCK_DECLARE_int32_(name) \
namespace testing { \
GTEST_API_ extern int32_t GMOCK_FLAG(name); \
- }
+ } static_assert(true, "no-op to require trailing semicolon")
#define GMOCK_DECLARE_string_(name) \
namespace testing { \
GTEST_API_ extern ::std::string GMOCK_FLAG(name); \
- }
+ } static_assert(true, "no-op to require trailing semicolon")
// Macros for defining flags.
#define GMOCK_DEFINE_bool_(name, default_val, doc) \
namespace testing { \
GTEST_API_ bool GMOCK_FLAG(name) = (default_val); \
- }
+ } static_assert(true, "no-op to require trailing semicolon")
#define GMOCK_DEFINE_int32_(name, default_val, doc) \
namespace testing { \
GTEST_API_ int32_t GMOCK_FLAG(name) = (default_val); \
- }
+ } static_assert(true, "no-op to require trailing semicolon")
#define GMOCK_DEFINE_string_(name, default_val, doc) \
namespace testing { \
GTEST_API_ ::std::string GMOCK_FLAG(name) = (default_val); \
- }
+ } static_assert(true, "no-op to require trailing semicolon")
#endif // !defined(GMOCK_DECLARE_bool_)
#if !defined(GMOCK_FLAG_GET)