[clang] [clang-format]: Split alignment of declarations around assignment (PR #69340)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 17 13:27:58 PDT 2023


================
@@ -18783,6 +18783,15 @@ TEST_F(FormatTest, AlignConsecutiveDeclarations) {
                "                 \"bb\"};\n"
                "int   bbbbbbb = 0;",
                Alignment);
+  // http://llvm.org/PR68079
+  verifyFormat("using Fn   = int (A::*)();\n"
+               "using RFn  = int (A::*)() &;\n"
+               "using RRFn = int (A::*)() &&;",
+               Alignment);
+  verifyFormat("using Fn   = int    (A::*)();\n"
----------------
HazardyKnusperkeks wrote:

See https://github.com/llvm/llvm-project/issues/68079#issuecomment-1767116044

https://github.com/llvm/llvm-project/pull/69340


More information about the cfe-commits mailing list