Searched refs:getDeclContext (Results 1 - 25 of 94) sorted by relevance

1234

/external/clang/lib/Tooling/Core/
H A DLookup.cpp99 isa<TranslationUnitDecl>(FromDecl->getDeclContext());
101 !isInsideDifferentNamespaceWithSameName(FromDecl->getDeclContext(),
/external/clang/lib/ARCMigrate/
H A DTransGCCalls.cpp49 if (!FD->getDeclContext()->getRedeclContext()->isFileContext())
H A DTransGCAttrs.cpp144 return isMigratable(cast<Decl>(D->getDeclContext()));
267 cast<Decl>(IndProps.front()->getDeclContext()))) {
H A DTransProtectedScope.cpp35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod())
H A DTransZeroOutPropsInDealloc.cpp107 ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(D->getDeclContext());
/external/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp60 const DeclContext *DC = FD->getDeclContext();
/external/clang/lib/AST/
H A DTemplateName.cpp88 // FIXME: Hack, getDeclContext() can be null if Template is still
92 return Template->getDeclContext() &&
93 Template->getDeclContext()->isDependentContext();
H A DDeclObjC.cpp748 const DeclContext *DC = getDeclContext();
815 Decl *CtxD = cast<Decl>(getDeclContext());
852 Decl *CtxD = cast<Decl>(getDeclContext());
1040 if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext()))
1042 if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext()))
1044 if (ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(getDeclContext()))
1046 if (isa<ObjCProtocolDecl>(getDeclContext()))
1068 .substObjCMemberType(receiverType, getDeclContext(),
1146 ProtD = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) {
1150 IMD = dyn_cast<ObjCImplDecl>(Method->getDeclContext())) {
[all...]
H A DDecl.cpp44 return !getLexicalDeclContext()->Equals(getDeclContext());
301 const DeclContext *DC = D->getDeclContext();
571 if (const auto *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext()))
579 assert(D->getDeclContext()->getRedeclContext()->isFileContext() &&
659 for (const DeclContext *DC = D->getDeclContext();
802 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()),
888 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation);
1119 DC = ContextDecl->getDeclContext()->getRedeclContext();
1195 LV = getLVForClosure(BD->getDeclContext()->getRedeclContext(),
1253 return getLVForDecl(cast<EnumDecl>(D->getDeclContext()), computatio
[all...]
H A DDeclBase.cpp200 for (const DeclContext *DC = getDeclContext();
250 setDeclContextsImpl(getDeclContext(), DC, getASTContext());
282 const DeclContext *DC = getDeclContext();
293 return getDeclContext()->isStdNamespace();
300 DeclContext *DC = getDeclContext();
749 !isa<CXXRecordDecl>(getDeclContext()) ||
1256 ND->getDeclContext()->getPrimaryContext()->
1264 ND->getDeclContext()->getPrimaryContext()->
1345 if (ND->getDeclContext() == DCtx && !shouldBeHidden(ND) &&
1537 DeclContext *DeclDC = D->getDeclContext()
[all...]
H A DMangle.cpp263 dyn_cast<ObjCContainerDecl>(MD->getDeclContext());
/external/clang/unittests/Tooling/
H A DLookupTest.cpp40 Callee->getQualifier(), Visitor.DeclStack.back()->getDeclContext(), FD,
/external/clang/lib/Index/
H A DUSRGeneration.cpp185 VisitDeclContext(D->getDeclContext());
198 VisitDeclContext(D->getDeclContext());
253 VisitDeclContext(D->getDeclContext());
272 VisitDeclContext(D->getDeclContext());
305 VisitDeclContext(D->getDeclContext());
319 VisitDeclContext(D->getDeclContext());
325 const DeclContext *container = D->getDeclContext();
402 Visit(cast<Decl>(D->getDeclContext()));
422 VisitDeclContext(D->getDeclContext());
494 const DeclContext *DC = D->getDeclContext();
[all...]
/external/clang/lib/Sema/
H A DIdentifierResolver.cpp136 DeclContext *DCtx = D->getDeclContext()->getRedeclContext();
331 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) {
361 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) {
H A DSemaTemplateInstantiateDecl.cpp29 const DeclContext *DC = D->getDeclContext();
288 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext());
311 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) &&
376 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext());
624 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) {
905 if (Pattern->getDeclContext()->isFunctionOrMethod() &&
979 Pattern->getDeclContext(),
1261 } else if (InstTemplate->getDeclContext()->isRecord() &&
1432 DC = SemaRef.FindInstantiatedContext(D->getLocation(), D->getDeclContext(),
1455 assert(D->getDeclContext()
[all...]
H A DSemaAccess.cpp66 DeclContext *DC = D->getDeclContext();
71 DC = cast<EnumDecl>(DC)->getDeclContext();
75 DeclaringClass = cast<CXXRecordDecl>(DeclaringClass->getDeclContext());
109 DC = Record->getDeclContext();
116 DC = Function->getDeclContext();
265 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext();
266 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext();
367 Context->getDeclContext(),
368 Friend->getDeclContext()))
483 if (!MightInstantiateTo(S, CTD->getDeclContext(),
[all...]
H A DSemaDeclObjC.cpp68 !isa<ObjCImplementationDecl>(method->getDeclContext()))
76 if (isa<ObjCProtocolDecl>(method->getDeclContext())) {
126 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext());
128 DeclContext *DC = NewMethod->getDeclContext();
372 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext());
374 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext());
788 !(isa<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) &&
789 cast<ObjCInterfaceDecl>(prevTypeParam->getDeclContext())
790 ->getDefinition() == prevTypeParam->getDeclContext())) {
1983 if (Dcl->getDeclContext()
[all...]
H A DSemaTemplate.cpp74 Record = cast<CXXRecordDecl>(Record->getDeclContext());
928 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext());
950 (OutermostContext->Equals(PrevDecl->getDeclContext()) ||
951 OutermostContext->Encloses(PrevDecl->getDeclContext()))) {
952 SemanticContext = PrevDecl->getDeclContext();
984 PrevClassTemplate->getDeclContext()->getRedeclContext()->Equals(
1127 if (!Invalid && TUK != TUK_Friend && NewTemplate->getDeclContext()->isRecord())
1696 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext()))
2211 ClassTemplate->getDeclContext(),
2595 Context, VarTemplate->getDeclContext(), TemplateKWLo
[all...]
H A DSemaTemplateInstantiate.cpp64 Ctx = D->getDeclContext();
160 Function->getDeclContext()->isFileContext() &&
498 FunctionDecl *FD = cast<FunctionDecl>(Param->getDeclContext());
829 DeclContext *Owner = OrigTPL->getParam(0)->getDeclContext();
1296 assert(!cast<FunctionDecl>(E->getParam()->getDeclContext())->
1300 cast<FunctionDecl>(E->getParam()->getDeclContext()),
1676 FunctionDecl *OwningFunc = cast<FunctionDecl>(OldParm->getDeclContext());
1997 if (Member->getDeclContext() != Pattern)
2059 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext());
2727 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(PV->getDeclContext())) {
[all...]
/external/clang/tools/libclang/
H A DIndexDecl.cpp232 D->getDeclContext());
237 !hasUserDefined(MD, cast<ObjCImplDecl>(D->getDeclContext())))
243 !hasUserDefined(MD, cast<ObjCImplDecl>(D->getDeclContext())))
H A DIndexingContext.cpp338 getContainerInfo(D->getDeclContext(), DInfo.SemanticContainer);
341 if (LexicalDC == D->getDeclContext()) {
593 D->getDeclContext());
974 if (isa<CXXRecordDecl>(D->getDeclContext())) {
982 CXXRec = dyn_cast<CXXRecordDecl>(D->getDeclContext())) {
/external/clang/lib/Frontend/
H A DASTConsumers.cpp304 const DeclContext* SemaDC = D->getDeclContext();
334 const DeclContext* SemaDC = D->getDeclContext();
350 const DeclContext* SemaDC = D->getDeclContext();
366 const DeclContext* SemaDC = D->getDeclContext();
/external/clang/lib/StaticAnalyzer/Checkers/
H A DLLVMConventionsChecker.cpp42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext());
48 return isa<TranslationUnitDecl>(ND->getDeclContext());
H A DObjCUnusedIVarsChecker.cpp153 Scan(M, D->getDeclContext(), SM.getFileID(D->getLocation()), SM);
/external/clang/lib/CodeGen/
H A DCGDebugInfo.cpp155 return getContextDescriptor(cast<Decl>(D->getDeclContext()),
221 const DeclContext *DC = OMD->getDeclContext();
1121 if (const CXXRecordDecl *NRD = dyn_cast<CXXRecordDecl>(RD->getDeclContext()))
1123 if (isa<FunctionDecl>(RD->getDeclContext()))
2433 dyn_cast_or_null<NamespaceDecl>(FD->getDeclContext()))
2436 dyn_cast_or_null<RecordDecl>(FD->getDeclContext())) {
2465 if (VD->getDeclContext() && !isa<FunctionDecl>(VD->getDeclContext()) &&
2466 !isa<ObjCMethodDecl>(VD->getDeclContext()))
2478 : VD->getDeclContext();
[all...]

Completed in 423 milliseconds

1234