[clang] [clang-format] Fix anonymous reference parameter with default value (PR #86254)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 25 13:47:10 PDT 2024
================
@@ -19056,6 +19056,9 @@ TEST_F(FormatTest, AlignConsecutiveDeclarations) {
verifyFormat("int a(int x);\n"
"double b();",
Alignment);
+ verifyFormat("int a(const Test & = Test());\n"
----------------
rayroudc wrote:
Got it, I have added a new test to cover this use case.
https://github.com/llvm/llvm-project/pull/86254
More information about the cfe-commits
mailing list