diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -14881,6 +14881,7 @@ FormatStyle Alignment = getLLVMStyle(); Alignment.AlignConsecutiveMacros = FormatStyle::ACS_Consecutive; Alignment.AlignConsecutiveDeclarations = FormatStyle::ACS_None; + Alignment.PointerAlignment = FormatStyle::PAS_Right; verifyFormat("float const a = 5;\n" "int oneTwoThree = 123;", Alignment); @@ -14916,8 +14917,8 @@ verifyFormat("int oneTwoThree{0}; // comment\n" "unsigned oneTwo; // comment", Alignment); - verifyFormat("unsigned int * a;\n" - "int * b;\n" + verifyFormat("unsigned int *a;\n" + "int *b;\n" "unsigned int Const *c;\n" "unsigned int const *d;\n" "unsigned int Const &e;\n" @@ -15231,7 +15232,7 @@ Alignment); verifyFormat("void SomeFunction(int parameter = 0) {\n" " int const i = 1;\n" - " int * j = 2;\n" + " int *j = 2;\n" " int big = 10000;\n" "}", Alignment); @@ -15334,7 +15335,7 @@ " float b,\n" " int c,\n" " uint32_t *d) {\n" - " int * e = 0;\n" + " int *e = 0;\n" " float f = 0;\n" " double g = 0;\n" "}\n"