[llvm] r304083 - Added braces to address gcc warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]. NFC.

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Sun May 28 14:41:52 PDT 2017


On Sat, May 27, 2017 at 10:30:54PM -0700, Craig Topper via llvm-commits wrote:
> EXPECT_STREQ should already be using this as far as I can tell.

GTEST_ASSERT_ should get a do { ... } while (0) wrapper. That's much
better than the switch statement it is currently trying to use.

Joerg


More information about the llvm-commits mailing list