From fd16eeea9d16150e35cadae1d77cee831b8cf510 Mon Sep 17 00:00:00 2001 From: Marek Kurdej Date: Fri, 11 Feb 2022 12:00:35 +0100 Subject: [PATCH] [clang-format] Assert default style instead of commenting. NFC. --- clang/unittests/Format/FormatTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index aa50d73499d0..06b2fe5c650c 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1975,9 +1975,8 @@ TEST_F(FormatTest, ElseIf) { TEST_F(FormatTest, SeparatePointerReferenceAlignment) { FormatStyle Style = getLLVMStyle(); - // Check first the default LLVM style - // Style.PointerAlignment = FormatStyle::PAS_Right; - // Style.ReferenceAlignment = FormatStyle::RAS_Pointer; + EXPECT_EQ(Style.PointerAlignment, FormatStyle::PAS_Right); + EXPECT_EQ(Style.ReferenceAlignment, FormatStyle::RAS_Pointer); verifyFormat("int *f1(int *a, int &b, int &&c);", Style); verifyFormat("int &f2(int &&c, int *a, int &b);", Style); verifyFormat("int &&f3(int &b, int &&c, int *a);", Style);