diff options
author | Abseil Team <absl-team@google.com> | 2020-05-13 14:52:56 (GMT) |
---|---|---|
committer | Andy Getz <durandal@google.com> | 2020-05-14 00:35:57 (GMT) |
commit | 8a32680cee020e62b87d4ed517d0201580101713 (patch) | |
tree | 5fe653a1c51bf59dc64db76957ffbcf2b7843fca /googletest/docs | |
parent | 48bf552cbf014daf9149f8ee38b49e171ba4208f (diff) | |
download | googletest-8a32680cee020e62b87d4ed517d0201580101713.zip googletest-8a32680cee020e62b87d4ed517d0201580101713.tar.gz googletest-8a32680cee020e62b87d4ed517d0201580101713.tar.bz2 |
Googletest export
Fixed #2823 - Make it so that a semicolon appearing after an invocation of GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_ does not trigger a redundant semicolon warning.
This works by introducing an else block with a statement that intentionally does not end with a semicolon, forcing users to place the semicolon after the expansion. The approach here is preferred as opposed to removing semicolons that appear after each invocation because complete statements that do not have a visible semicolon or braces confuse users and code formatters, since the macro invocation looks superficially like an expression.
PiperOrigin-RevId: 311327491
Diffstat (limited to 'googletest/docs')
0 files changed, 0 insertions, 0 deletions