[PATCH] D21204: clang-format: [JS] post-fix non-null assertion operator.

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 9 22:14:18 PDT 2016


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

================
Comment at: lib/Format/TokenAnnotator.cpp:2128
@@ +2127,3 @@
+    if (Right.is(tok::exclaim) &&
+        (Left.isOneOf(tok::identifier, tok::r_paren, tok::r_square) ||
+         Left.Tok.isLiteral()))
----------------
Can you add a test for each of these? Also, how can a literal be null?


http://reviews.llvm.org/D21204





More information about the cfe-commits mailing list