[PATCH] D145642: [clang-format] Annotate lambdas with requires clauses.

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 9 04:32:03 PST 2023


HazardyKnusperkeks accepted this revision.
HazardyKnusperkeks added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:3393
+        break;
+      } else {
+        return;
----------------
don't need `else` after `break`.
In fact I would negate the condition and return, and keep the remainder out of any `if` or `else`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145642



More information about the cfe-commits mailing list