Lines Matching refs:cast
37 EXPECT_EQ("unknown command: foo", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
46 EXPECT_EQ("unexpected extra input: ' me'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
58 EXPECT_EQ("unexpected extra input: ' me'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
64 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
68 EXPECT_EQ("unknown variable: 'foo'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
73 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
77 EXPECT_EQ("unexpected extra input: ' foo'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
82 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
86 EXPECT_EQ(&QuerySession::DetailedASTOutput, cast<SetExclusiveOutputQuery>(Q)->Var); in TEST_F()
90 EXPECT_EQ(&QuerySession::DetailedASTOutput, cast<SetExclusiveOutputQuery>(Q)->Var); in TEST_F()
94 EXPECT_EQ(&QuerySession::DetailedASTOutput, cast<EnableOutputQuery>(Q)->Var); in TEST_F()
98 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
102 EXPECT_EQ(&QuerySession::DetailedASTOutput, cast<DisableOutputQuery>(Q)->Var); in TEST_F()
107 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
111 EXPECT_EQ(&QuerySession::BindRoot, cast<SetQuery<bool> >(Q)->Var); in TEST_F()
112 EXPECT_EQ(true, cast<SetQuery<bool> >(Q)->Value); in TEST_F()
117 cast<SetQuery<ast_type_traits::TraversalKind>>(Q)->Var); in TEST_F()
119 cast<SetQuery<ast_type_traits::TraversalKind>>(Q)->Value); in TEST_F()
124 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
130 EXPECT_TRUE(cast<MatchQuery>(Q)->Matcher.canConvertTo<Decl>()); in TEST_F()
134 EXPECT_TRUE(cast<MatchQuery>(Q)->Matcher.canConvertTo<Stmt>()); in TEST_F()
140 EXPECT_EQ("foo", cast<LetQuery>(Q)->Name); in TEST_F()
141 EXPECT_TRUE(cast<LetQuery>(Q)->Value.isMatcher()); in TEST_F()
142 EXPECT_TRUE(cast<LetQuery>(Q)->Value.getMatcher().hasTypedMatcher<Decl>()); in TEST_F()
146 EXPECT_EQ("foo", cast<LetQuery>(Q)->Name); in TEST_F()
147 EXPECT_TRUE(cast<LetQuery>(Q)->Value.isMatcher()); in TEST_F()
148 EXPECT_TRUE(cast<LetQuery>(Q)->Value.getMatcher().hasTypedMatcher<Decl>()); in TEST_F()
152 EXPECT_EQ("bar", cast<LetQuery>(Q)->Name); in TEST_F()
153 EXPECT_TRUE(cast<LetQuery>(Q)->Value.isString()); in TEST_F()
154 EXPECT_EQ("str", cast<LetQuery>(Q)->Value.getString()); in TEST_F()
158 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
162 EXPECT_EQ("x", cast<LetQuery>(Q)->Name); in TEST_F()
163 EXPECT_FALSE(cast<LetQuery>(Q)->Value.hasValue()); in TEST_F()
167 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
172 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
279 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
340 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
346 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
357 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
363 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
372 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
378 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
387 cast<InvalidQuery>(Q)->ErrStr); in TEST_F()