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

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 9 11:13:50 PST 2023


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

Changed verifyFormat -> verifyNoChange, to place the expected output only.
Restored value with `getLLVMStyle().ReferenceAlignment`, if this is not ok, I can substitute with `FormatStyle::ReferenceAlignmentStyle::RAS_Pointer`

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


More information about the cfe-commits mailing list