Author: Marek Kurdej Date: 2022-01-31T09:06:00+01:00 New Revision: 438f0e1f00ada4827d8138dd236e850b26c4141f
URL: https://github.com/llvm/llvm-project/commit/438f0e1f00ada4827d8138dd236e850b26c4141f DIFF: https://github.com/llvm/llvm-project/commit/438f0e1f00ada4827d8138dd236e850b26c4141f.diff LOG: [clang-format] Use EXPECT_EQ instead of setting style to a default value. NFC. Added: Modified: clang/unittests/Format/FormatTest.cpp Removed: ################################################################################ diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index cf20a70e6cdf3..bbe3f53807e62 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -16562,7 +16562,7 @@ TEST_F(FormatTest, AlignConsecutiveAssignments) { "y = 1;\n", Alignment); - Alignment.ReflowComments = true; + EXPECT_EQ(Alignment.ReflowComments, true); Alignment.ColumnLimit = 50; EXPECT_EQ("int x = 0;\n" "int yy = 1; /// specificlennospace\n" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits