Home | History | Annotate | Download | only in Symbol

Lines Matching refs:decl_ctx

1129 ClangASTContext::CreateRecordType (DeclContext *decl_ctx,
1139 if (decl_ctx == NULL)
1140 decl_ctx = ast->getTranslationUnitDecl();
1147 return CreateObjCClass (name, decl_ctx, isForwardDecl, isInternal, metadata);
1157 decl_ctx,
1170 if (decl_ctx)
1171 decl_ctx->addDecl (decl);
1232 ClangASTContext::CreateFunctionTemplateDecl (clang::DeclContext *decl_ctx,
1246 decl_ctx,
1279 ClangASTContext::CreateClassTemplateDecl (DeclContext *decl_ctx,
1288 if (decl_ctx == NULL)
1289 decl_ctx = ast->getTranslationUnitDecl();
1294 clang::DeclContext::lookup_result result = decl_ctx->lookup(decl_name);
1311 decl_ctx, // What decl context do we use here? TU? The actual decl context?
1329 decl_ctx, // What decl context do we use here? TU? The actual decl context?
1341 //if (TagDecl *ctx_tag_decl = dyn_cast<TagDecl>(decl_ctx))
1344 decl_ctx->addDecl (class_template_decl);
1356 ClangASTContext::CreateClassTemplateSpecializationDecl (DeclContext *decl_ctx,
1364 decl_ctx,
1734 DeclContext *decl_ctx,
1743 if (decl_ctx == NULL)
1744 decl_ctx = ast->getTranslationUnitDecl();
1747 decl_ctx,
1799 ClangASTContext::GetUniqueNamespaceDeclaration (const char *name, DeclContext *decl_ctx)
1804 if (decl_ctx == NULL)
1805 decl_ctx = translation_unit_decl;
1811 clang::DeclContext::lookup_result result = decl_ctx->lookup(decl_name);
1820 decl_ctx,
1827 decl_ctx->addDecl (namespace_decl);
1831 if (decl_ctx == translation_unit_decl)
1838 decl_ctx,
1850 NamespaceDecl *parent_namespace_decl = cast<NamespaceDecl>(decl_ctx);
1857 decl_ctx,
1880 decl_ctx,
1886 decl_ctx);
1888 decl_ctx->addDecl(using_directive_decl);
1901 ClangASTContext::CreateFunctionDeclaration (DeclContext *decl_ctx,
1909 if (decl_ctx == NULL)
1910 decl_ctx = ast->getTranslationUnitDecl();
1919 decl_ctx,
1933 decl_ctx,
1945 decl_ctx->addDecl (func_decl);
2051 DeclContext *decl_ctx,
2065 decl_ctx,
2237 ClangASTContext::GetClassMethodInfoForDeclContext (clang::DeclContext *decl_ctx,
2246 if (decl_ctx)
2248 if (clang::CXXMethodDecl *method_decl = llvm::dyn_cast<clang::CXXMethodDecl>(decl_ctx))
2262 else if (clang::ObjCMethodDecl *method_decl = llvm::dyn_cast<clang::ObjCMethodDecl>(decl_ctx))
2277 else if (clang::FunctionDecl *function_decl = llvm::dyn_cast<clang::FunctionDecl>(decl_ctx))
2279 ClangASTMetadata *metadata = GetMetadata (&decl_ctx->getParentASTContext(), function_decl);