[PATCH] D14188: Format: support inline namespaces

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 29 15:30:21 PDT 2015


djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.

Expression can be simplified, otherwise looks good.


================
Comment at: lib/Format/UnwrappedLineParser.cpp:1370
@@ -1369,2 +1369,3 @@
   nextToken();
-  if (FormatTok->Tok.is(tok::identifier))
+  while (FormatTok->Tok.is(tok::identifier) ||
+         FormatTok->Tok.is(tok::coloncolon))
----------------
  while (FormatTok->isOneOf(tok::identifier, tok::coloncolon))
    nextToken();


http://reviews.llvm.org/D14188





More information about the cfe-commits mailing list