Lines Matching refs:Ctx
82 ASTContext &Ctx = AST->getASTContext(); in TEST() local
83 assert(Ctx.getTargetInfo().getUserLabelPrefix() == StringRef("_") && in TEST()
88 selectFirst<CXXRecordDecl>("d", match(cxxRecordDecl().bind("d"), Ctx)); in TEST()
93 DeclF->addAttr(AsmLabelAttr::Create(Ctx, "foo", /*LiteralLabel=*/true)); in TEST()
94 DeclG->addAttr(AsmLabelAttr::Create(Ctx, "goo", /*LiteralLabel=*/false)); in TEST()
99 ItaniumMangleContext::create(Ctx, Diags)); in TEST()
123 ASTContext &Ctx = AST->getASTContext(); in TEST() local
124 assert(Ctx.getTargetInfo().getUserLabelPrefix() == StringRef("_") && in TEST()
129 selectFirst<VarDecl>("A", match(varDecl().bind("A"), Ctx)); in TEST()
131 selectFirst<FieldDecl>("B", match(fieldDecl().bind("B"), Ctx)); in TEST()
136 ItaniumMangleContext::create(Ctx, Diags)); in TEST()
152 ASTContext &Ctx = AST->getASTContext(); in TEST() local
155 selectFirst<ConceptDecl>("decl", match(conceptDecl().bind("decl"), Ctx)); in TEST()
165 ASTContext &Ctx = AST->getASTContext(); in TEST() local
166 const auto &SM = Ctx.getSourceManager(); in TEST()
169 selectFirst<TagDecl>("Bar", match(enumDecl().bind("Bar"), Ctx)); in TEST()
171 Lexer::getAsCharRange(Bar->getSourceRange(), SM, Ctx.getLangOpts()); in TEST()
183 ASTContext &Ctx = AST->getASTContext(); in TEST() local
186 selectFirst<FunctionDecl>("f", match(functionDecl().bind("f"), Ctx)); in TEST()
208 ASTContext &Ctx = AST->getASTContext(); in TEST() local
211 match(functionDecl().bind("f"), Ctx); in TEST()
220 match(classTemplateDecl().bind("C"), Ctx); in TEST()
222 match(classTemplateSpecializationDecl().bind("C"), Ctx); in TEST()
243 ASTContext &Ctx = AST->getASTContext(); in TEST() local
246 selectFirst<VarDecl>("a", match(varDecl(hasName("a")).bind("a"), Ctx)); in TEST()
248 "f", match(functionDecl(hasName("f")).bind("f"), Ctx)); in TEST()
254 selectFirst<VarDecl>("b", match(varDecl(hasName("b")).bind("b"), Ctx)); in TEST()
256 "g", match(functionDecl(hasName("g")).bind("g"), Ctx)); in TEST()
273 ASTContext &Ctx = AST->getASTContext(); in TEST() local
276 "f", match(functionDecl(hasName("f")).bind("f"), Ctx)); in TEST()
295 ASTContext &Ctx = AST->getASTContext(); in TEST() local
298 "foo", match(functionDecl(hasName("foo")).bind("foo"), Ctx)); in TEST()
305 "bar", match(functionDecl(hasName("bar")).bind("bar"), Ctx)); in TEST()
324 ASTContext &Ctx = AST->getASTContext(); in TEST() local
327 "memFn", match(functionDecl(hasName("memFn")).bind("memFn"), Ctx)); in TEST()
347 ASTContext &Ctx = AST->getASTContext(); in TEST() local
351 match(functionDecl(hasName("getFooValue")).bind("getFooValue"), Ctx)); in TEST()
367 ASTContext &Ctx = AST->getASTContext(); in TEST() local
376 selectFirst<CXXConstructorDecl>("MoveCtor", match(ImpMoveCtor, Ctx)); in TEST()
391 ASTContext &Ctx = AST->getASTContext(); in TEST() local
394 "f", match(functionDecl(hasName("f")).bind("f"), Ctx)); in TEST()
422 ASTContext &Ctx = AST->getASTContext(); in TEST() local
430 Ctx)); in TEST()
442 Ctx)); in TEST()
452 Ctx)); in TEST()
464 Ctx)); in TEST()
476 Ctx)); in TEST()
488 Ctx)); in TEST()
501 Ctx)); in TEST()
513 Ctx)); in TEST()
535 ASTContext &Ctx = AST->getASTContext(); in TEST() local
539 match(classTemplateSpecializationDecl(hasName("Foo")).bind("id"), Ctx)); in TEST()
564 ASTContext &Ctx = AST->getASTContext(); in TEST() local
566 const auto &SM = Ctx.getSourceManager(); in TEST()
573 *Ctx.getTranslationUnitDecl(), Ctx); in TEST()