[PATCH] D138263: [clang-format] Supress aligning of trailing namespace comments

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 18 08:18:45 PST 2022


HazardyKnusperkeks added a comment.

In D138263#3936536 <https://reviews.llvm.org/D138263#3936536>, @HazardyKnusperkeks wrote:

> In D138263#3936007 <https://reviews.llvm.org/D138263#3936007>, @owenpan wrote:
>
>> I suppose it's fairly easy to annotate the `l_brace` of a namespace? If so, then wouldn't it be better to do that?
>
> But the `r_brace` has no `MatchingParen`, and I didn't want to go into that hole.

One thing I thought about was adding a new `BlockKind`. But maybe I can look into the code that sets that and can add the `MatchingParen`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138263



More information about the cfe-commits mailing list