Lines Matching refs:copied_decl

462             Decl *copied_decl = m_ast_importer->CopyDecl(m_ast_context, original_ctx, decl);  in FindExternalLexicalDecls()  local
464 if (!copied_decl) in FindExternalLexicalDecls()
467 if (FieldDecl *copied_field = dyn_cast<FieldDecl>(copied_decl)) in FindExternalLexicalDecls()
474 decls.push_back(copied_decl); in FindExternalLexicalDecls()
478 if (copied_decl->getDeclContext() != decl_context) in FindExternalLexicalDecls()
480 if (copied_decl->getDeclContext()->containsDecl(copied_decl)) in FindExternalLexicalDecls()
481 copied_decl->getDeclContext()->removeDecl(copied_decl); in FindExternalLexicalDecls()
482 copied_decl->setDeclContext(decl_context_non_const); in FindExternalLexicalDecls()
485 if (!decl_context_non_const->containsDecl(copied_decl)) in FindExternalLexicalDecls()
486 decl_context_non_const->addDeclInternal(copied_decl); in FindExternalLexicalDecls()
886 …Decl *copied_decl = ast_importer->CopyDecl(ast_context, &result_method->getASTContext(), result_me… in FindObjCMethodDeclsWithOrigin() local
888 if (!copied_decl) in FindObjCMethodDeclsWithOrigin()
891 ObjCMethodDecl *copied_method_decl = dyn_cast<ObjCMethodDecl>(copied_decl); in FindObjCMethodDeclsWithOrigin()
1087 …Decl *copied_decl = m_ast_importer->CopyDecl(m_ast_context, &method_decl->getASTContext(), method_… in FindObjCMethodDecls() local
1089 if (!copied_decl) in FindObjCMethodDecls()
1092 ObjCMethodDecl *copied_method_decl = dyn_cast<ObjCMethodDecl>(copied_decl); in FindObjCMethodDecls()
1669 …Decl *copied_decl = m_ast_importer->CopyDecl(m_ast_context, namespace_decl.GetASTContext(), namesp… in AddNamespace() local
1671 if (!copied_decl) in AddNamespace()
1674 NamespaceDecl *copied_namespace_decl = dyn_cast<NamespaceDecl>(copied_decl); in AddNamespace()
1683 return dyn_cast<NamespaceDecl>(copied_decl); in AddNamespace()