/external/clang/lib/AST/ |
Mangle.cpp | 52 const DeclContext *ExpectedDC = BD->getDeclContext(); 139 dyn_cast<ObjCContainerDecl>(MD->getDeclContext()); 152 const DeclContext *DC = BD->getDeclContext();
|
TemplateName.cpp | 88 // FIXME: Hack, getDeclContext() can be null if Template is still 92 return Template->getDeclContext() && 93 Template->getDeclContext()->isDependentContext();
|
Decl.cpp | 201 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && 258 if (cast<RecordDecl>(Field->getDeclContext())->isAnonymousStructOrUnion()) 265 if ((!Var || !Var->getDeclContext()->isExternCContext()) && 266 (!Func || !Func->getDeclContext()->isExternCContext())) 284 for (const DeclContext *DC = D->getDeclContext(); 334 !Var->getDeclContext()->isExternCContext()) { 404 !Function->getDeclContext()->isExternCContext() && 458 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()), 528 LV.mergeWithMin(getLVForDecl(cast<RecordDecl>(D->getDeclContext()), 765 const DeclContext *DC = D->getDeclContext()->getRedeclContext() [all...] |
DeclBase.cpp | 157 for (const DeclContext *DC = getDeclContext(); 204 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); 223 const DeclContext *DC = getDeclContext(); 237 DeclContext *DC = getDeclContext(); 665 !isa<CXXRecordDecl>(getDeclContext()) || 683 return getDeclContext()->getNonClosureAncestor(); 691 // decl type and call getDeclContext() than to call getParent(). 693 DC = cast<BlockDecl>(DC)->getDeclContext(); 1073 ND->getDeclContext()->getPrimaryContext()-> 1081 ND->getDeclContext()->getPrimaryContext()- [all...] |
DeclObjC.cpp | 492 Decl *CtxD = cast<Decl>(getDeclContext()); 523 Decl *CtxD = cast<Decl>(getDeclContext()); 699 if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) 701 if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) 703 if (ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(getDeclContext())) 706 assert(!isa<ObjCProtocolDecl>(getDeclContext()) && "It's a protocol method"); [all...] |
MicrosoftMangle.cpp | 141 for (const DeclContext *DC = D->getDeclContext(); 174 const DeclContext *DC = D->getDeclContext(); 290 const DeclContext *DC = ND->getDeclContext(); 478 assert(TD->getDeclContext() == D->getDeclContext() && [all...] |
/external/clang/lib/ARCMigrate/ |
TransGCCalls.cpp | 55 if (!FD->getDeclContext()->getRedeclContext()->isFileContext())
|
TransGCAttrs.cpp | 146 return isMigratable(cast<Decl>(D->getDeclContext())); 271 cast<Decl>(IndProps.front()->getDeclContext()))) {
|
TransZeroOutPropsInDealloc.cpp | 107 ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(D->getDeclContext());
|
/external/clang/tools/libclang/ |
CIndexUSRs.cpp | 155 if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext())) 175 VisitDeclContext(D->getDeclContext()); 188 VisitDeclContext(D->getDeclContext()); 229 VisitDeclContext(D->getDeclContext()); 248 VisitDeclContext(D->getDeclContext()); 279 VisitDeclContext(D->getDeclContext()); 293 VisitDeclContext(D->getDeclContext()); 299 DeclContext *container = D->getDeclContext(); 377 Visit(cast<Decl>(D->getDeclContext())); 397 VisitDeclContext(D->getDeclContext()); [all...] |
CXCursor.cpp | 877 ProtD = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) { 881 IMD = dyn_cast<ObjCImplDecl>(Method->getDeclContext())) { 893 CatD = dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) { 906 dyn_cast_or_null<ObjCContainerDecl>(Method->getDeclContext()), 941 ObjCContainerDecl *ContD = cast<ObjCContainerDecl>(Method->getDeclContext()); 975 Method = cast<ObjCContainerDecl>(Method->getDeclContext())-> [all...] |
IndexingContext.cpp | 279 getContainerInfo(D->getDeclContext(), DInfo.SemanticContainer); 282 if (LexicalDC == D->getDeclContext()) { 506 return handleReference(PD, D->getLocation(), getCursor(D), 0, D->getDeclContext()); 888 if (isa<CXXRecordDecl>(D->getDeclContext())) { 896 CXXRec = dyn_cast<CXXRecordDecl>(D->getDeclContext())) { [all...] |
/external/clang/lib/Sema/ |
IdentifierResolver.cpp | 144 DeclContext *DCtx = D->getDeclContext()->getRedeclContext(); 353 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { 383 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) {
|
SemaAccess.cpp | 66 DeclContext *DC = D->getDeclContext(); 71 DC = cast<EnumDecl>(DC)->getDeclContext(); 75 DeclaringClass = cast<CXXRecordDecl>(DeclaringClass->getDeclContext()); 109 DC = Record->getDeclContext(); 116 DC = Function->getDeclContext(); 250 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); 251 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); 355 Context->getDeclContext(), 356 Friend->getDeclContext())) 473 if (!MightInstantiateTo(S, CTD->getDeclContext(), [all...] |
SemaTemplateInstantiateDecl.cpp | 453 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) { 617 if (D->getDeclContext()->isFunctionOrMethod()) 628 (!D->getDeclContext()->isFunctionOrMethod() || D->isCompleteDefinition())) 683 if (Pattern->getDeclContext()->isFunctionOrMethod() && 752 Pattern->getDeclContext(), [all...] |
CodeCompleteConsumer.cpp | 407 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); 535 AR = std::max(AR, cast<Decl>(D->getDeclContext())->getAvailability());
|
SemaTemplate.cpp | 71 Record = cast<CXXRecordDecl>(Record->getDeclContext()); [all...] |
SemaDeclObjC.cpp | 66 !isa<ObjCImplementationDecl>(method->getDeclContext())) 74 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { 128 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); 130 DeclContext *DC = NewMethod->getDeclContext(); [all...] |
SemaDecl.cpp | [all...] |
/external/clang/lib/Frontend/ |
ASTConsumers.cpp | 290 const DeclContext* SemaDC = D->getDeclContext(); 320 const DeclContext* SemaDC = D->getDeclContext(); 336 const DeclContext* SemaDC = D->getDeclContext(); 352 const DeclContext* SemaDC = D->getDeclContext();
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
LLVMConventionsChecker.cpp | 41 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); 47 return isa<TranslationUnitDecl>(ND->getDeclContext());
|
ObjCUnusedIVarsChecker.cpp | 160 Scan(M, D->getDeclContext(), SM.getFileID(D->getLocation()), SM);
|
/external/clang/include/clang/AST/ |
DeclBase.h | 361 DeclContext *getDeclContext() { 366 const DeclContext *getDeclContext() const { 367 return const_cast<Decl*>(this)->getDeclContext(); 621 /// getDeclContext() (SemanticDC). 639 return getLexicalDeclContext() != getDeclContext(); [all...] |
/external/clang/lib/CodeGen/ |
CGDebugInfo.cpp | 151 const DeclContext *DC = OMD->getDeclContext(); 586 getContextDescriptor(cast<Decl>(RD->getDeclContext())); 690 getContextDescriptor(cast<Decl>(Ty->getDecl()->getDeclContext())); [all...] |
CodeGenTypes.cpp | 62 if (RD->getDeclContext()) 69 if (TDD->getDeclContext())
|