[clang] 40d2ef8 - [clang-format][NFC] Replace an EXPECT_EQ with a verifyFormat
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 1 21:21:01 PDT 2022
Author: owenca
Date: 2022-07-01T21:20:54-07:00
New Revision: 40d2ef841b68f6b493ce88bd750a92105a2b567d
URL: https://github.com/llvm/llvm-project/commit/40d2ef841b68f6b493ce88bd750a92105a2b567d
DIFF: https://github.com/llvm/llvm-project/commit/40d2ef841b68f6b493ce88bd750a92105a2b567d.diff
LOG: [clang-format][NFC] Replace an EXPECT_EQ with a verifyFormat
Added:
Modified:
clang/unittests/Format/FormatTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index d6deafe1093c..c4066253fd1a 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -7129,13 +7129,10 @@ TEST_F(FormatTest, BreakConstructorInitializersAfterColon) {
" bbbbbbbbbbbbbbbbbbbbbbbb(b) {}",
OnePerLine);
- EXPECT_EQ("Constructor() :\n"
- " // Comment forcing unwanted break.\n"
- " aaaa(aaaa) {}",
- format("Constructor() :\n"
- " // Comment forcing unwanted break.\n"
- " aaaa(aaaa) {}",
- Style));
+ verifyFormat("Constructor() :\n"
+ " // Comment forcing unwanted break.\n"
+ " aaaa(aaaa) {}",
+ Style);
Style.ColumnLimit = 0;
verifyFormat("SomeClass::Constructor() :\n"
More information about the cfe-commits
mailing list