reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
46 EXPECT_TRUE(Value.hasValue()); 47 EXPECT_FALSE(Value.isUnsigned()); 48 EXPECT_FALSE(Value.isString()); 50 EXPECT_TRUE(Value.isMatcher()); 51 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<Decl>()); 52 EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<UnaryOperator>()); 53 EXPECT_EQ("Matcher<Stmt>", Value.getTypeAsString()); 56 Value = VariantMatcher::SingleMatcher(recordDecl()); 57 EXPECT_TRUE(Value.isMatcher()); 58 EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<Decl>()); 59 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<UnaryOperator>()); 60 EXPECT_EQ("Matcher<Decl>", Value.getTypeAsString()); 62 Value = VariantMatcher::SingleMatcher(ignoringImpCasts(expr())); 63 EXPECT_TRUE(Value.isMatcher()); 64 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<Decl>()); 65 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<Stmt>()); 66 EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<Expr>()); 67 EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<IntegerLiteral>()); 68 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<GotoStmt>()); 69 EXPECT_EQ("Matcher<Expr>", Value.getTypeAsString());