Lines Matching refs:decl_ctx

1470 CompilerType ClangASTContext::CreateRecordType(DeclContext *decl_ctx,  in CreateRecordType()  argument
1478 if (decl_ctx == nullptr) in CreateRecordType()
1479 decl_ctx = ast->getTranslationUnitDecl(); in CreateRecordType()
1485 return CreateObjCClass(name, decl_ctx, isForwardDecl, isInternal, metadata); in CreateRecordType()
1497 *ast, (TagDecl::TagKind)kind, decl_ctx, SourceLocation(), in CreateRecordType()
1510 if (decl_ctx) in CreateRecordType()
1511 decl_ctx->addDecl(decl); in CreateRecordType()
1584 clang::DeclContext *decl_ctx, clang::FunctionDecl *func_decl, in CreateFunctionTemplateDecl() argument
1594 *ast, decl_ctx, func_decl->getLocation(), func_decl->getDeclName(), in CreateFunctionTemplateDecl()
1616 DeclContext *decl_ctx, lldb::AccessType access_type, const char *class_name, in CreateClassTemplateDecl() argument
1621 if (decl_ctx == nullptr) in CreateClassTemplateDecl()
1622 decl_ctx = ast->getTranslationUnitDecl(); in CreateClassTemplateDecl()
1627 clang::DeclContext::lookup_result result = decl_ctx->lookup(decl_name); in CreateClassTemplateDecl()
1642 decl_ctx, // What decl context do we use here? TU? The actual decl in CreateClassTemplateDecl()
1658 decl_ctx, // What decl context do we use here? TU? The actual decl in CreateClassTemplateDecl()
1670 decl_ctx->addDecl(class_template_decl); in CreateClassTemplateDecl()
1684 auto *decl_ctx = ast->getTranslationUnitDecl(); in CreateTemplateTemplateParmDecl() local
1698 *ast, decl_ctx, SourceLocation(), in CreateTemplateTemplateParmDecl()
1705 DeclContext *decl_ctx, ClassTemplateDecl *class_template_decl, int kind, in CreateClassTemplateSpecializationDecl() argument
1719 *ast, (TagDecl::TagKind)kind, decl_ctx, SourceLocation(), in CreateClassTemplateSpecializationDecl()
1847 DeclContext *decl_ctx, in CreateObjCClass() argument
1854 if (decl_ctx == nullptr) in CreateObjCClass()
1855 decl_ctx = ast->getTranslationUnitDecl(); in CreateObjCClass()
1858 *ast, decl_ctx, SourceLocation(), &ast->Idents.get(name), nullptr, in CreateObjCClass()
1900 DeclContext *decl_ctx) { in GetUniqueNamespaceDeclaration() argument
1904 if (decl_ctx == nullptr) in GetUniqueNamespaceDeclaration()
1905 decl_ctx = translation_unit_decl; in GetUniqueNamespaceDeclaration()
1910 clang::DeclContext::lookup_result result = decl_ctx->lookup(decl_name); in GetUniqueNamespaceDeclaration()
1918 NamespaceDecl::Create(*ast, decl_ctx, false, SourceLocation(), in GetUniqueNamespaceDeclaration()
1921 decl_ctx->addDecl(namespace_decl); in GetUniqueNamespaceDeclaration()
1923 if (decl_ctx == translation_unit_decl) { in GetUniqueNamespaceDeclaration()
1929 NamespaceDecl::Create(*ast, decl_ctx, false, SourceLocation(), in GetUniqueNamespaceDeclaration()
1935 NamespaceDecl *parent_namespace_decl = cast<NamespaceDecl>(decl_ctx); in GetUniqueNamespaceDeclaration()
1941 NamespaceDecl::Create(*ast, decl_ctx, false, SourceLocation(), in GetUniqueNamespaceDeclaration()
1959 clang::ASTContext *ast, const char *name, clang::DeclContext *decl_ctx) { in GetUniqueNamespaceDeclaration() argument
1964 return ast_ctx->GetUniqueNamespaceDeclaration(name, decl_ctx); in GetUniqueNamespaceDeclaration()
1996 clang::DeclContext *decl_ctx, clang::NamespaceDecl *ns_decl) { in CreateUsingDirectiveDeclaration() argument
1997 if (decl_ctx != nullptr && ns_decl != nullptr) { in CreateUsingDirectiveDeclaration()
2001 *getASTContext(), decl_ctx, clang::SourceLocation(), in CreateUsingDirectiveDeclaration()
2004 FindLCABetweenDecls(decl_ctx, ns_decl, translation_unit)); in CreateUsingDirectiveDeclaration()
2005 decl_ctx->addDecl(using_decl); in CreateUsingDirectiveDeclaration()
2147 DeclContext *decl_ctx, const char *name, in CreateFunctionDeclaration() argument
2151 if (decl_ctx == nullptr) in CreateFunctionDeclaration()
2152 decl_ctx = ast->getTranslationUnitDecl(); in CreateFunctionDeclaration()
2160 *ast, decl_ctx, SourceLocation(), SourceLocation(), declarationName, in CreateFunctionDeclaration()
2165 decl_ctx->addDecl(func_decl); in CreateFunctionDeclaration()
2217 clang::DeclContext *decl_ctx, const char *name, in CreateParameterDeclaration() argument
2222 ParmVarDecl::Create(*ast, decl_ctx, SourceLocation(), SourceLocation(), in CreateParameterDeclaration()
2226 decl_ctx->addDecl(decl); in CreateParameterDeclaration()
2316 ClangASTContext::CreateEnumerationType(const char *name, DeclContext *decl_ctx, in CreateEnumerationType() argument
2328 *ast, decl_ctx, SourceLocation(), SourceLocation(), in CreateEnumerationType()
2335 if (decl_ctx) in CreateEnumerationType()
2336 decl_ctx->addDecl(enum_decl); in CreateEnumerationType()
2401 void ClangASTContext::DumpDeclContextHiearchy(clang::DeclContext *decl_ctx) { in DumpDeclContextHiearchy() argument
2402 if (decl_ctx) { in DumpDeclContextHiearchy()
2403 DumpDeclContextHiearchy(decl_ctx->getParent()); in DumpDeclContextHiearchy()
2405 clang::NamedDecl *named_decl = llvm::dyn_cast<clang::NamedDecl>(decl_ctx); in DumpDeclContextHiearchy()
2407 printf("%20s: %s\n", decl_ctx->getDeclKindName(), in DumpDeclContextHiearchy()
2410 printf("%20s\n", decl_ctx->getDeclKindName()); in DumpDeclContextHiearchy()
3038 clang::DeclContext *decl_ctx = ClangASTContext::GetASTContext(getASTContext()) in IsRuntimeGeneratedType() local
3040 if (!decl_ctx) in IsRuntimeGeneratedType()
3043 if (!llvm::isa<clang::ObjCInterfaceDecl>(decl_ctx)) in IsRuntimeGeneratedType()
3047 llvm::dyn_cast<clang::ObjCInterfaceDecl>(decl_ctx); in IsRuntimeGeneratedType()
4852 clang::DeclContext *decl_ctx = in CreateTypedefType() local
4854 if (decl_ctx == nullptr) in CreateTypedefType()
4855 decl_ctx = ast->getASTContext()->getTranslationUnitDecl(); in CreateTypedefType()
4858 *clang_ast, decl_ctx, clang::SourceLocation(), clang::SourceLocation(), in CreateTypedefType()
4864 decl_ctx->addDecl(decl); in CreateTypedefType()
4960 clang::DeclContext *decl_ctx = in CreateTypedef() local
4962 if (decl_ctx == nullptr) in CreateTypedef()
4963 decl_ctx = getASTContext()->getTranslationUnitDecl(); in CreateTypedef()
4966 *clang_ast, decl_ctx, clang::SourceLocation(), clang::SourceLocation(), in CreateTypedef()
9843 clang::DeclContext *decl_ctx, lldb::AccessType access_type, in ParseClassTemplateDecl() argument
9850 return CreateClassTemplateDecl(decl_ctx, access_type, in ParseClassTemplateDecl()
10120 for (clang::DeclContext *decl_ctx = frame_decl_ctx; decl_ctx != nullptr; in CountDeclLevels() local
10121 decl_ctx = decl_ctx->getParent()) { in CountDeclLevels()
10122 if (!decl_ctx->isLookupContext()) in CountDeclLevels()
10124 if (decl_ctx == parent_decl_ctx) in CountDeclLevels()
10127 search_queue.insert(std::make_pair(decl_ctx, decl_ctx)); in CountDeclLevels()
10128 for (auto it = search_queue.find(decl_ctx); it != search_queue.end(); in CountDeclLevels()
10221 clang::DeclContext *decl_ctx = (clang::DeclContext *)opaque_decl_ctx; in DeclContextIsClassMethod() local
10223 llvm::dyn_cast<clang::ObjCMethodDecl>(decl_ctx)) { in DeclContextIsClassMethod()
10232 llvm::dyn_cast<clang::CXXMethodDecl>(decl_ctx)) { in DeclContextIsClassMethod()
10241 llvm::dyn_cast<clang::FunctionDecl>(decl_ctx)) { in DeclContextIsClassMethod()
10243 GetMetadata(&decl_ctx->getParentASTContext(), function_decl); in DeclContextIsClassMethod()