[PATCH] D33094: [ASTMatchers] Add clang-query support for equals matcher

Peter Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 7 14:42:32 PDT 2017


Lekensteyn added inline comments.


================
Comment at: unittests/ASTMatchers/Dynamic/RegistryTest.cpp:545
+      .getTypedMatcher<Stmt>();
+  EXPECT_TRUE(matches("int x = 'x';", CharStmt));
+  EXPECT_FALSE(matches("int x = 120;", CharStmt));
----------------
Lekensteyn wrote:
> aaron.ballman wrote:
> > Can you add some tests involving the other character literal types (L, u, U, u8)?
> will do
Done (except for u8 which is only defined for string literals).


https://reviews.llvm.org/D33094





More information about the cfe-commits mailing list