[PATCH] D132131: [clang-format] Adds a formatter for aligning trailing comments over empty lines

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 14 09:15:51 PDT 2022


HazardyKnusperkeks accepted this revision.
HazardyKnusperkeks added a comment.

For me this is good. But please wait for @MyDeveloperDay .



================
Comment at: clang/lib/Format/WhitespaceManager.cpp:931-933
+  if (Style.AlignTrailingComments.Kind == FormatStyle::TCAS_Always) {
+    NewLineThreshold = Style.AlignTrailingComments.OverEmptyLines + 1;
+  }
----------------
These braces also.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132131



More information about the cfe-commits mailing list