[PATCH] D79773: [clang-format] Improve clang-formats handling of concepts

Michael Schellenberger Costa via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 19 06:28:27 PDT 2020


miscco added inline comments.


================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:2314
+      nextToken();
+      if (FormatTok->Tok.is(tok::less)) {
+        while (!FormatTok->Tok.is(tok::greater)) {
----------------
I guess you could use `parseBracedList(/*ContinueOnSemicolons=*/false, /*IsEnum=*/false,/*ClosingBraceKind=*/tok::greater);` here?


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

https://reviews.llvm.org/D79773





More information about the cfe-commits mailing list