[PATCH] D19240: clang-format: [JS] support `interface` as a free standing identifier.

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 19 05:32:58 PDT 2016

djasper added inline comments.

Comment at: lib/Format/UnwrappedLineParser.cpp:1016
@@ +1015,3 @@
+          unsigned StoredPosition = Tokens->getPosition();
+          FormatToken *Next = Tokens->getNextToken();
+          FormatTok = Tokens->setPosition(StoredPosition);
I wonder whether you can reuse mustBeJSIdentOrValue (possibly splitting apart the ..OrValue part).


More information about the cfe-commits mailing list