[clang-format] Assert default style instead of commenting. NFC.

This commit is contained in:
Marek Kurdej 2022-02-11 12:00:35 +01:00
parent 326cb51b14
commit fd16eeea9d
1 changed files with 2 additions and 3 deletions

View File

@ -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);