[PATCH] D119785: [clang-format] Fix formatting of struct-like records followed by variable declaration.

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 15 02:09:48 PST 2022


curdeius added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:718
 
     if (Line.Last->is(tok::l_brace)) {
       FormatToken *Tok = I[1]->First;
----------------
@MyDeveloperDay, probably we'll need to check `LastNonComment` similarly to what I did with `FirstNonComment` for loops.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119785



More information about the cfe-commits mailing list