[PATCH] D90238: [clang-format] Added ReferenceAlignmentStyle option - (Update to D31635)

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 10 12:43:38 PDT 2021


HazardyKnusperkeks added a comment.

I think this would be a nice addition, and in the past I would have used it. I really like the option `Pointer`.

If this will be pursued I will be happy to review it.



================
Comment at: clang/unittests/Format/FormatTest.cpp:895
+  verifyFormat("int* a = f1();\nint& b = f2();\nint&& c = f3();", Style);
+  Style.PointerAlignment = FormatStyle::PAS_Right;
+  Style.ReferenceAlignment = FormatStyle::RAS_Pointer;
----------------
I would really like an empty line before changing the style, that way it is more obvious.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90238/new/

https://reviews.llvm.org/D90238



More information about the cfe-commits mailing list