[PATCH] D126758: [clang-format] Handle do-while loops for RemoveBracesLLVM

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 1 12:06:11 PDT 2022


HazardyKnusperkeks added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineParser.h:118-119
                               TokenType NextLBracesType = TT_Unknown,
+                              bool *HasDoWhile = nullptr,
                               bool *HasLabel = nullptr);
   bool tryToParseBracedList();
----------------
Should we merge that to something like `KeepBraces`? Or do we use `HasLabel` and `HasDoWhile` differently?


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

https://reviews.llvm.org/D126758



More information about the cfe-commits mailing list