[clang] [clang-format] Fix operator overload inconsistency in `BreakAfterAttributes: Always` (PR #74943)

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 9 10:31:33 PST 2023


================
@@ -26417,6 +26417,20 @@ TEST_F(FormatTest, BreakAfterAttributes) {
                "void g() {}",
                CtorDtorCode, Style);
 
+  Style.ReferenceAlignment = FormatStyle::ReferenceAlignmentStyle::RAS_Left;
----------------
XDeme wrote:

To restore the value, is it ok if I do it like this: `Style.ReferenceAlignment = getLLVMStyle().ReferenceAlignment;`?

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


More information about the cfe-commits mailing list