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

1234

/external/clang/lib/ARCMigrate/
H A DTransGCCalls.cpp49 if (!FD->getDeclContext()->getRedeclContext()->isFileContext())
H A DTransGCAttrs.cpp144 return isMigratable(cast<Decl>(D->getDeclContext()));
269 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/Index/
H A DUSRGeneration.cpp187 VisitDeclContext(D->getDeclContext());
200 VisitDeclContext(D->getDeclContext());
239 VisitDeclContext(D->getDeclContext());
258 VisitDeclContext(D->getDeclContext());
291 VisitDeclContext(D->getDeclContext());
305 VisitDeclContext(D->getDeclContext());
311 const DeclContext *container = D->getDeclContext();
388 Visit(cast<Decl>(D->getDeclContext()));
408 VisitDeclContext(D->getDeclContext());
477 const DeclContext *DC = D->getDeclContext();
[all...]
/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 DDecl.cpp290 const DeclContext *DC = D->getDeclContext();
560 if (const LinkageSpecDecl *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext()))
568 assert(D->getDeclContext()->getRedeclContext()->isFileContext() &&
643 for (const DeclContext *DC = D->getDeclContext();
788 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()),
868 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation);
1090 DC = ContextDecl->getDeclContext()->getRedeclContext();
1166 LV = getLVForClosure(BD->getDeclContext()->getRedeclContext(),
1241 OuterMostLambda->getDeclContext()->getRedeclContext(),
1250 if (D->getDeclContext()
[all...]
H A DDeclObjC.cpp665 const DeclContext *DC = getDeclContext();
732 Decl *CtxD = cast<Decl>(getDeclContext());
769 Decl *CtxD = cast<Decl>(getDeclContext());
944 if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext()))
946 if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext()))
948 if (ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(getDeclContext()))
950 if (isa<ObjCProtocolDecl>(getDeclContext()))
1029 ProtD = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) {
1033 IMD = dyn_cast<ObjCImplDecl>(Method->getDeclContext())) {
1046 CatD = dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) {
[all...]
H A DDeclBase.cpp175 for (const DeclContext *DC = getDeclContext();
225 setDeclContextsImpl(getDeclContext(), DC, getASTContext());
244 const DeclContext *DC = getDeclContext();
255 return getDeclContext()->isStdNamespace();
262 DeclContext *DC = getDeclContext();
688 !isa<CXXRecordDecl>(getDeclContext()) ||
1192 ND->getDeclContext()->getPrimaryContext()->
1200 ND->getDeclContext()->getPrimaryContext()->
1275 if (ND->getDeclContext() == DCtx && !shouldBeHidden(ND) &&
1453 DeclContext *DeclDC = D->getDeclContext()
[all...]
H A DMangle.cpp240 dyn_cast<ObjCContainerDecl>(MD->getDeclContext());
/external/clang/lib/Sema/
H A DIdentifierResolver.cpp133 DeclContext *DCtx = D->getDeclContext()->getRedeclContext();
323 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) {
353 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) {
H A DSemaTemplateInstantiateDecl.cpp29 const DeclContext *DC = D->getDeclContext();
198 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext());
263 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext());
508 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) {
779 if (Pattern->getDeclContext()->isFunctionOrMethod() &&
848 Pattern->getDeclContext(),
1129 } else if (InstTemplate->getDeclContext()->isRecord() &&
1279 DC = SemaRef.FindInstantiatedContext(D->getLocation(), D->getDeclContext(),
1302 assert(D->getDeclContext()->isFileContext());
1303 LexicalDC = 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();
260 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext();
261 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext();
362 Context->getDeclContext(),
363 Friend->getDeclContext()))
478 if (!MightInstantiateTo(S, CTD->getDeclContext(),
[all...]
H A DSemaDeclObjC.cpp66 !isa<ObjCImplementationDecl>(method->getDeclContext()))
74 if (isa<ObjCProtocolDecl>(method->getDeclContext())) {
128 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext());
130 DeclContext *DC = NewMethod->getDeclContext();
375 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext());
377 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext());
1140 if (Dcl->getDeclContext()->isFileContext())
2217 CD = dyn_cast<ObjCCategoryDecl>(Method->getDeclContext()))
2277 if (cast<Decl>(Method->getDeclContext())->isInvalidDecl())
2824 = cast<ObjCContainerDecl>(method->getDeclContext());
[all...]
H A DSemaTemplate.cpp73 Record = cast<CXXRecordDecl>(Record->getDeclContext());
918 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext());
940 (OutermostContext->Equals(PrevDecl->getDeclContext()) ||
941 OutermostContext->Encloses(PrevDecl->getDeclContext()))) {
942 SemanticContext = PrevDecl->getDeclContext();
1089 if (!Invalid && TUK != TUK_Friend && NewTemplate->getDeclContext()->isRecord())
1666 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext()))
2129 ClassTemplate->getDeclContext(),
2529 Context, VarTemplate->getDeclContext(), TemplateKWLoc,
2572 Context, VarTemplate->getDeclContext(), TemplateKWLo
[all...]
H A DSemaLambda.cpp94 VarToCapture->getDeclContext()->Equals(EnclosingDC))
296 = Param->getDeclContext()->getLexicalParent())
300 if (Var->getDeclContext()->isRecord())
426 getCurrentMangleNumberContext(Class->getDeclContext(),
505 return cast<EnumDecl>(D->getDeclContext());
/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.cpp295 const DeclContext* SemaDC = D->getDeclContext();
325 const DeclContext* SemaDC = D->getDeclContext();
341 const DeclContext* SemaDC = D->getDeclContext();
357 const DeclContext* SemaDC = D->getDeclContext();
/external/clang/lib/CodeGen/
H A DCGDebugInfo.cpp195 const DeclContext *DC = OMD->getDeclContext();
746 llvm::DIDescriptor Ctxt = getContextDescriptor(cast<Decl>(AliasDecl->getDeclContext()));
763 getContextDescriptor(cast<Decl>(Ty->getDecl()->getDeclContext()));
1041 if (const CXXRecordDecl *NRD = dyn_cast<CXXRecordDecl>(RD->getDeclContext()))
1043 if (isa<FunctionDecl>(RD->getDeclContext()))
1250 D->getType(), cast<RecordDecl>(D->getDeclContext())
1535 Ty, getContextDescriptor(cast<Decl>(RD->getDeclContext())));
1927 EDContext = getContextDescriptor(cast<Decl>(ED->getDeclContext()));
1967 getContextDescriptor(cast<Decl>(ED->getDeclContext()));
2234 getContextDescriptor(cast<Decl>(RD->getDeclContext()));
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DObjCUnusedIVarsChecker.cpp153 Scan(M, D->getDeclContext(), SM.getFileID(D->getLocation()), SM);
H A DLLVMConventionsChecker.cpp42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext());
48 return isa<TranslationUnitDecl>(ND->getDeclContext());
/external/clang/include/clang/AST/
H A DDeclBase.h374 DeclContext *getDeclContext() { function in class:clang::Decl
379 const DeclContext *getDeclContext() const { function in class:clang::Decl
380 return const_cast<Decl*>(this)->getDeclContext();
661 /// getDeclContext() (SemanticDC).
679 return getLexicalDeclContext() != getDeclContext();
1086 return cast<Decl>(this)->getDeclContext();
/external/chromium_org/tools/clang/plugins/
H A DChromeClassTester.cpp132 return GetNamespaceImpl(record->getDeclContext(), "");

Completed in 727 milliseconds

1234