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

1234

/freebsd-9.3-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransGCCalls.cpp55 if (!FD->getDeclContext()->getRedeclContext()->isFileContext())
H A DTransGCAttrs.cpp145 return isMigratable(cast<Decl>(D->getDeclContext()));
271 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());
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp60 const DeclContext *DC = FD->getDeclContext();
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Index/
H A DUSRGeneration.cpp161 VisitDeclContext(D->getDeclContext());
174 VisitDeclContext(D->getDeclContext());
216 VisitDeclContext(D->getDeclContext());
235 VisitDeclContext(D->getDeclContext());
268 VisitDeclContext(D->getDeclContext());
282 VisitDeclContext(D->getDeclContext());
288 const DeclContext *container = D->getDeclContext();
365 Visit(cast<Decl>(D->getDeclContext()));
385 VisitDeclContext(D->getDeclContext());
454 const DeclContext *DC = D->getDeclContext();
[all...]
/freebsd-9.3-release/contrib/llvm/tools/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 DDecl.cpp296 const DeclContext *DC = D->getDeclContext();
516 if (const LinkageSpecDecl *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext()))
524 assert(D->getDeclContext()->getRedeclContext()->isFileContext() &&
605 for (const DeclContext *DC = D->getDeclContext();
742 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()),
815 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation);
1029 DC = ContextDecl->getDeclContext()->getRedeclContext();
1105 LV = getLVForClosure(BD->getDeclContext()->getRedeclContext(),
1180 OuterMostLambda->getDeclContext()->getRedeclContext(),
1189 if (D->getDeclContext()
[all...]
H A DDeclObjC.cpp639 Decl *CtxD = cast<Decl>(getDeclContext());
676 Decl *CtxD = cast<Decl>(getDeclContext());
852 if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext()))
854 if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext()))
856 if (ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(getDeclContext()))
859 assert(!isa<ObjCProtocolDecl>(getDeclContext()) && "It's a protocol method");
948 ProtD = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) {
952 IMD = dyn_cast<ObjCImplDecl>(Method->getDeclContext())) {
965 CatD = dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) {
979 dyn_cast_or_null<ObjCContainerDecl>(Method->getDeclContext()),
[all...]
H A DDeclBase.cpp168 for (const DeclContext *DC = getDeclContext();
218 setDeclContextsImpl(getDeclContext(), DC, getASTContext());
237 const DeclContext *DC = getDeclContext();
251 DeclContext *DC = getDeclContext();
677 !isa<CXXRecordDecl>(getDeclContext()) ||
1149 ND->getDeclContext()->getPrimaryContext()->
1157 ND->getDeclContext()->getPrimaryContext()->
1229 if (ND->getDeclContext() == DCtx && !shouldBeHidden(ND) &&
1405 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext();
1432 ((!Recoverable || D->getDeclContext() !
[all...]
H A DMangle.cpp244 dyn_cast<ObjCContainerDecl>(MD->getDeclContext());
H A DMicrosoftMangle.cpp46 return ContextParam->getDeclContext();
53 return ContextParam->getDeclContext();
56 const DeclContext *DC = D->getDeclContext();
376 const DeclContext *DC = ND->getDeclContext();
523 assert(TD->getDeclContext() == D->getDeclContext() &&
2067 Mangler.manglePostfix(VD->getDeclContext());
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Sema/
H A DIdentifierResolver.cpp133 DeclContext *DCtx = D->getDeclContext()->getRedeclContext();
326 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) {
356 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) {
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();
259 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext();
260 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext();
363 Context->getDeclContext(),
364 Friend->getDeclContext()))
481 if (!MightInstantiateTo(S, CTD->getDeclContext(),
[all...]
H A DSemaTemplateInstantiateDecl.cpp29 const DeclContext *DC = D->getDeclContext();
159 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext());
224 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext());
460 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) {
735 if (Pattern->getDeclContext()->isFunctionOrMethod() &&
804 Pattern->getDeclContext(),
1088 } else if (InstTemplate->getDeclContext()->isRecord() &&
1239 DC = SemaRef.FindInstantiatedContext(D->getLocation(), D->getDeclContext(),
1262 assert(D->getDeclContext()->isFileContext());
1263 LexicalDC = D->getDeclContext();
[all...]
H A DSemaDeclObjC.cpp66 !isa<ObjCImplementationDecl>(method->getDeclContext()))
74 if (isa<ObjCProtocolDecl>(method->getDeclContext())) {
127 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext());
129 DeclContext *DC = NewMethod->getDeclContext();
378 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext());
380 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext());
1109 if (Dcl->getDeclContext()->isFileContext())
2143 CD = dyn_cast<ObjCCategoryDecl>(Method->getDeclContext()))
2203 if (cast<Decl>(Method->getDeclContext())->isInvalidDecl())
2432 isa<ObjCImplDecl>(TargetMethod->getDeclContext())) {
[all...]
H A DSemaOpenMP.cpp247 isa<CapturedDecl>(D->getDeclContext()) &&
248 CurScope->getFnParent()->getEntity()->Encloses(D->getDeclContext());
449 if (CanonicalVD->getDeclContext()->isTranslationUnit() &&
464 !CanonicalVD->getDeclContext()->Equals(getCurLexicalContext())) {
477 if (CanonicalVD->getDeclContext()->isNamespace() &&
479 !getCurLexicalContext()->Encloses(CanonicalVD->getDeclContext()))) {
H A DSemaTemplate.cpp72 Record = cast<CXXRecordDecl>(Record->getDeclContext());
923 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext());
945 (OutermostContext->Equals(PrevDecl->getDeclContext()) ||
946 OutermostContext->Encloses(PrevDecl->getDeclContext()))) {
947 SemanticContext = PrevDecl->getDeclContext();
1092 if (!Invalid && TUK != TUK_Friend && NewTemplate->getDeclContext()->isRecord())
1650 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext()))
2085 ClassTemplate->getDeclContext(),
2462 Context, VarTemplate->getDeclContext(), TemplateKWLoc,
2505 Context, VarTemplate->getDeclContext(), TemplateKWLo
[all...]
H A DSemaLambda.cpp54 if (IsCapturingVariable && VD->getDeclContext()->Equals(EnclosingDC))
210 = Param->getDeclContext()->getLexicalParent())
214 if (Var->getDeclContext()->isRecord())
342 getCurrentMangleNumberContext(Class->getDeclContext(),
421 return cast<EnumDecl>(D->getDeclContext());
H A DSemaTemplateInstantiate.cpp64 Ctx = D->getDeclContext();
150 Function->getDeclContext()->isFileContext() &&
606 FunctionDecl *FD = cast<FunctionDecl>(Param->getDeclContext());
947 DeclContext *Owner = OrigTPL->getParam(0)->getDeclContext();
1398 assert(!cast<FunctionDecl>(E->getParam()->getDeclContext())->
1402 cast<FunctionDecl>(E->getParam()->getDeclContext()),
2060 if ((*Member)->getDeclContext() != Pattern)
2149 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext());
2750 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(PV->getDeclContext())) {
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Frontend/
H A DASTConsumers.cpp296 const DeclContext* SemaDC = D->getDeclContext();
326 const DeclContext* SemaDC = D->getDeclContext();
342 const DeclContext* SemaDC = D->getDeclContext();
358 const DeclContext* SemaDC = D->getDeclContext();
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGDebugInfo.cpp195 const DeclContext *DC = OMD->getDeclContext();
743 getContextDescriptor(cast<Decl>(Ty->getDecl()->getDeclContext()));
1014 if (const CXXRecordDecl *NRD = dyn_cast<CXXRecordDecl>(RD->getDeclContext()))
1016 if (isa<FunctionDecl>(RD->getDeclContext()))
1224 D->getType(), cast<RecordDecl>(D->getDeclContext())
1465 getContextDescriptor(cast<Decl>(RD->getDeclContext()));
1862 EDContext = getContextDescriptor(cast<Decl>(ED->getDeclContext()));
1888 getContextDescriptor(cast<Decl>(ED->getDeclContext()));
2221 getContextDescriptor(cast<Decl>(RD->getDeclContext()));
2345 llvm::DIScope S = getContextDescriptor(cast<Decl>(D->getDeclContext()));
[all...]
/freebsd-9.3-release/contrib/llvm/tools/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.cpp162 Scan(M, D->getDeclContext(), SM.getFileID(D->getLocation()), SM);
/freebsd-9.3-release/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclBase.h382 DeclContext *getDeclContext() { function in class:clang::Decl
387 const DeclContext *getDeclContext() const { function in class:clang::Decl
388 return const_cast<Decl*>(this)->getDeclContext();
662 /// getDeclContext() (SemanticDC).
680 return getLexicalDeclContext() != getDeclContext();
1064 return cast<Decl>(this)->getDeclContext();

Completed in 315 milliseconds

1234