From 3371711aabc154acb4bffee4dc9491632379857d Mon Sep 17 00:00:00 2001 From: Patrik Hagglund Date: Tue, 14 May 2013 07:53:53 +0000 Subject: [PATCH] Replace EXPECT_EQ with EXPECT_FALSE to avoid gcc warning [-Wconversion-null], introduced in r181326. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181761 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Format/FormatTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 697cc53820..b2ae3d2560 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -4122,9 +4122,9 @@ TEST_F(FormatTest, ParsesConfiguration) { #define CHECK_PARSE_BOOL(FIELD) \ Style.FIELD = false; \ EXPECT_EQ(0, parseConfiguration(#FIELD ": true", &Style).value()); \ - EXPECT_EQ(true, Style.FIELD); \ + EXPECT_TRUE(Style.FIELD); \ EXPECT_EQ(0, parseConfiguration(#FIELD ": false", &Style).value()); \ - EXPECT_EQ(false, Style.FIELD); + EXPECT_FALSE(Style.FIELD); CHECK_PARSE_BOOL(AlignEscapedNewlinesLeft); CHECK_PARSE_BOOL(AllowAllParametersOfDeclarationOnNextLine); -- 2.40.0