/external/clang/tools/libclang/ |
D | CIndexUSRs.cpp | 168 VisitDeclContext(D->getDeclContext()); in VisitFieldDecl() 181 VisitDeclContext(D->getDeclContext()); in VisitFunctionDecl() 223 VisitDeclContext(D->getDeclContext()); in VisitNamedDecl() 242 VisitDeclContext(D->getDeclContext()); in VisitVarDecl() 275 VisitDeclContext(D->getDeclContext()); in VisitNamespaceDecl() 289 VisitDeclContext(D->getDeclContext()); in VisitNamespaceAliasDecl() 295 const DeclContext *container = D->getDeclContext(); in VisitObjCMethodDecl() 373 Visit(cast<Decl>(D->getDeclContext())); in VisitObjCPropertyDecl() 393 VisitDeclContext(D->getDeclContext()); in VisitTagDecl() 462 const DeclContext *DC = D->getDeclContext(); in VisitTypedefDecl()
|
D | IndexingContext.cpp | 337 getContainerInfo(D->getDeclContext(), DInfo.SemanticContainer); in handleDecl() 340 if (LexicalDC == D->getDeclContext()) { in handleDecl() 584 return handleReference(PD, D->getLocation(), getCursor(D), 0, D->getDeclContext()); in handleSynthesizedObjCProperty() 965 if (isa<CXXRecordDecl>(D->getDeclContext())) { in getEntityInfo() 973 CXXRec = dyn_cast<CXXRecordDecl>(D->getDeclContext())) { in getEntityInfo()
|
/external/clang/lib/AST/ |
D | Mangle.cpp | 52 const DeclContext *ExpectedDC = BD->getDeclContext(); in checkMangleDC() 139 dyn_cast<ObjCContainerDecl>(MD->getDeclContext()); in mangleObjCMethodName() 152 const DeclContext *DC = BD->getDeclContext(); in mangleBlock()
|
D | Decl.cpp | 476 return First->getDeclContext()->isExternCContext(); in isInExternCContext() 481 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && in getLVForNamespaceScopeDecl() 538 if (cast<RecordDecl>(Field->getDeclContext())->isAnonymousStructOrUnion()) in getLVForNamespaceScopeDecl() 564 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl() 657 !Function->getDeclContext()->isExternCContext() && in getLVForNamespaceScopeDecl() 690 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()), in getLVForNamespaceScopeDecl() 762 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember() 994 !Function->getDeclContext()->isExternCContext()) in getLVForLocalDecl() 1018 !Var->getDeclContext()->isExternCContext()) in getLVForLocalDecl() 1074 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in getLVForDecl() [all …]
|
D | DeclBase.cpp | 167 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod() 217 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext() 236 const DeclContext *DC = getDeclContext(); in isInAnonymousNamespace() 250 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl() 686 !isa<CXXRecordDecl>(getDeclContext()) || in CheckAccessDeclContext() 704 return getDeclContext()->getNonClosureAncestor(); in getNonClosureContext() 714 DC = cast<BlockDecl>(DC)->getDeclContext(); in getNonClosureAncestor() 1119 ND->getDeclContext()->getPrimaryContext()-> in addDecl() 1127 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal() 1191 if (ND->getDeclContext() == DCtx && !shouldBeHidden(ND)) in buildLookupImpl() [all …]
|
D | DeclObjC.cpp | 556 Decl *CtxD = cast<Decl>(getDeclContext()); in getNextRedeclaration() 587 Decl *CtxD = cast<Decl>(getDeclContext()); in getCanonicalDecl() 763 if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) in getClassInterface() 765 if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) in getClassInterface() 767 if (ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(getDeclContext())) in getClassInterface() 770 assert(!isa<ObjCProtocolDecl>(getDeclContext()) && "It's a protocol method"); in getClassInterface() 857 ProtD = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow() 861 IMD = dyn_cast<ObjCImplDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow() 873 CatD = dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow() 886 dyn_cast_or_null<ObjCContainerDecl>(Method->getDeclContext()), in collectOverriddenMethodsSlow() [all …]
|
D | TemplateName.cpp | 92 return Template->getDeclContext() && in isDependent() 93 Template->getDeclContext()->isDependentContext(); in isDependent()
|
D | TemplateBase.cpp | 104 return getAsDecl()->getDeclContext()->isDependentContext(); in isDependent() 145 return getAsDecl()->getDeclContext()->isDependentContext(); in isInstantiationDependent()
|
/external/clang/lib/Sema/ |
D | SemaAccess.cpp | 66 DeclContext *DC = D->getDeclContext(); in FindDeclaringClass() 71 DC = cast<EnumDecl>(DC)->getDeclContext(); in FindDeclaringClass() 75 DeclaringClass = cast<CXXRecordDecl>(DeclaringClass->getDeclContext()); in FindDeclaringClass() 109 DC = Record->getDeclContext(); in EffectiveContext() 116 DC = Function->getDeclContext(); in EffectiveContext() 259 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() 260 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() 364 Context->getDeclContext(), in MightInstantiateTo() 365 Friend->getDeclContext())) in MightInstantiateTo() 482 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend() [all …]
|
D | IdentifierResolver.cpp | 147 DeclContext *DCtx = D->getDeclContext()->getRedeclContext(); in isDeclInScope() 364 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl() 394 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
|
D | SemaTemplateInstantiateDecl.cpp | 206 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext()); in InstantiateTypedefNameDecl() 516 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) { in VisitFieldDecl() 680 if (D->getDeclContext()->isFunctionOrMethod()) in VisitEnumDecl() 691 (!D->getDeclContext()->isFunctionOrMethod() || D->isCompleteDefinition())) in VisitEnumDecl() 746 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition() 815 Pattern->getDeclContext(), in VisitClassTemplateDecl() 1020 } else if (InstTemplate->getDeclContext()->isRecord() && in VisitFunctionTemplateDecl() 1066 if (Record->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitCXXRecordDecl() 1151 if (D->getDeclContext()->isFunctionOrMethod()) in VisitFunctionDecl() 1159 DC = SemaRef.FindInstantiatedContext(D->getLocation(), D->getDeclContext(), in VisitFunctionDecl() [all …]
|
D | SemaDeclObjC.cpp | 66 !isa<ObjCImplementationDecl>(method->getDeclContext())) in checkInitMethod() 74 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod() 127 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride() 129 DeclContext *DC = NewMethod->getDeclContext(); in CheckObjCMethodOverride() 377 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext()); in ActOnStartOfObjCMethodDef() 379 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext()); in ActOnStartOfObjCMethodDef() 1070 if (Dcl->getDeclContext()->isFileContext()) in ActOnFinishObjCImplementation() 2130 if (cast<Decl>(Method->getDeclContext())->isInvalidDecl()) in AddMethodToGlobalPool() 2657 = cast<ObjCContainerDecl>(method->getDeclContext()); in OverrideSearch() 2795 if (isa<ObjCProtocolDecl>(overridden->getDeclContext()) || in CheckObjCMethodOverrides() [all …]
|
D | SemaTemplate.cpp | 71 Record = cast<CXXRecordDecl>(Record->getDeclContext()); in isAcceptableTemplateName() 927 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext()); in CheckClassTemplate() 949 (OutermostContext->Equals(PrevDecl->getDeclContext()) || in CheckClassTemplate() 950 OutermostContext->Encloses(PrevDecl->getDeclContext()))) { in CheckClassTemplate() 951 SemanticContext = PrevDecl->getDeclContext(); in CheckClassTemplate() 1095 if (!Invalid && TUK != TUK_Friend && NewTemplate->getDeclContext()->isRecord()) in CheckClassTemplate() 1661 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext())) in MatchTemplateParametersToScopeSpecifier() 2094 ClassTemplate->getDeclContext(), in CheckTemplateIdType() 2579 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument() 2629 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument() [all …]
|
D | SemaDecl.cpp | 1049 !D->getDeclContext()->getRedeclContext()->Equals( in PushOnScopeChains() 1190 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage() 1209 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl() 1286 !D->getDeclContext()->isFunctionOrMethod()) in ShouldDiagnoseUnusedDecl() 2154 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDeclaration(); in mergeParamDeclAttributes() 2245 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages() 2251 New->getDeclContext()->isExternCContext()) in haveIncompatibleLanguageLinkages() 2254 New->getDeclContext()->isExternCXXContext()) in haveIncompatibleLanguageLinkages() 3081 Record->getDeclContext()->isRecord()) in ParsedFreeStandingDeclSpec() 3128 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec() [all …]
|
D | SemaLookup.cpp | 385 if (!TD->getDeclContext()->isRecord()) { in resolveKind() 436 if (Decls[UniqueTagIndex]->getDeclContext()->getRedeclContext()->Equals( in resolveKind() 437 Decls[UniqueTagIndex? 0 : N-1]->getDeclContext()->getRedeclContext())) in resolveKind() 1178 DC = (*I)->getDeclContext()->getRedeclContext(); in LookupName() 1189 = (*LastI)->getDeclContext()->getRedeclContext(); in LookupName() 1788 DeclContext *Ctx = ClassTemplate->getDeclContext(); in addAssociatedClassesAndNamespaces() 1834 DeclContext *Ctx = Class->getDeclContext(); in addAssociatedClassesAndNamespaces() 1856 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext(); in addAssociatedClassesAndNamespaces() 1900 DeclContext *BaseCtx = BaseDecl->getDeclContext(); in addAssociatedClassesAndNamespaces() 1981 DeclContext *Ctx = Enum->getDeclContext(); in addAssociatedClassesAndNamespaces() [all …]
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 292 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext() 322 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext() 338 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext() 354 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
|
/external/clang/lib/ARCMigrate/ |
D | TransGCCalls.cpp | 55 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
|
D | TransGCAttrs.cpp | 145 return isMigratable(cast<Decl>(D->getDeclContext())); in isMigratable() 271 cast<Decl>(IndProps.front()->getDeclContext()))) { in checkAllAtProps()
|
D | TransProtectedScope.cpp | 35 if (D->getDeclContext()->getRedeclContext()->isFunctionOrMethod()) in VisitDeclRefExpr()
|
D | TransZeroOutPropsInDealloc.cpp | 107 ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(D->getDeclContext()); in TraverseObjCMethodDecl()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | CheckerContext.cpp | 60 const DeclContext *DC = FD->getDeclContext(); in isCLibraryFunction()
|
/external/clang/lib/CodeGen/ |
D | CGDebugInfo.cpp | 154 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName() 633 getContextDescriptor(cast<Decl>(RD->getDeclContext())); in CreatePointeeType() 748 getContextDescriptor(cast<Decl>(Ty->getDecl()->getDeclContext())); in CreateType() 1025 if (const CXXRecordDecl *NRD = dyn_cast<CXXRecordDecl>(RD->getDeclContext())) in isFunctionLocalClass() 1027 if (isa<FunctionDecl>(RD->getDeclContext())) in isFunctionLocalClass() 1693 EDContext = getContextDescriptor(cast<Decl>(ED->getDeclContext())); in CreateEnumType() 1719 getContextDescriptor(cast<Decl>(ED->getDeclContext())); in CreateEnumType() 2032 RDContext = createContextChain(cast<Decl>(RD->getDeclContext())); in CreateLimitedType() 2034 RDContext = getContextDescriptor(cast<Decl>(RD->getDeclContext())); in CreateLimitedType() 2129 getContextDescriptor(cast<Decl>(D->getDeclContext())); in getFunctionDeclaration() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | LLVMConventionsChecker.cpp | 42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace() 48 return isa<TranslationUnitDecl>(ND->getDeclContext()); in InNamespace()
|
D | ObjCUnusedIVarsChecker.cpp | 162 Scan(M, D->getDeclContext(), SM.getFileID(D->getLocation()), SM); in checkObjCUnusedIvar()
|
/external/clang/include/clang/AST/ |
D | DeclBase.h | 366 DeclContext *getDeclContext() { in getDeclContext() function 371 const DeclContext *getDeclContext() const { in getDeclContext() function 372 return const_cast<Decl*>(this)->getDeclContext(); in getDeclContext() 647 return getLexicalDeclContext() != getDeclContext(); in isOutOfLine() 992 return cast<Decl>(this)->getDeclContext(); in getParent()
|