Home
last modified time | relevance | path

Searched refs:getDeclContext (Results 1 – 25 of 92) sorted by relevance

1234

/external/clang/lib/Index/
DUSRGeneration.cpp187 VisitDeclContext(D->getDeclContext()); in VisitFieldDecl()
200 VisitDeclContext(D->getDeclContext()); in VisitFunctionDecl()
255 VisitDeclContext(D->getDeclContext()); in VisitNamedDecl()
274 VisitDeclContext(D->getDeclContext()); in VisitVarDecl()
307 VisitDeclContext(D->getDeclContext()); in VisitNamespaceDecl()
321 VisitDeclContext(D->getDeclContext()); in VisitNamespaceAliasDecl()
327 const DeclContext *container = D->getDeclContext(); in VisitObjCMethodDecl()
404 Visit(cast<Decl>(D->getDeclContext())); in VisitObjCPropertyDecl()
424 VisitDeclContext(D->getDeclContext()); in VisitTagDecl()
497 const DeclContext *DC = D->getDeclContext(); in VisitTypedefDecl()
/external/clang/lib/AST/
DDecl.cpp44 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine()
296 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext()
566 if (const LinkageSpecDecl *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext())) in isSingleLineLanguageLinkage()
574 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && in getLVForNamespaceScopeDecl()
652 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl()
797 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()), in getLVForNamespaceScopeDecl()
879 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember()
1114 DC = ContextDecl->getDeclContext()->getRedeclContext(); in getLVForClosure()
1190 LV = getLVForClosure(BD->getDeclContext()->getRedeclContext(), in getLVForLocalDecl()
1265 OuterMostLambda->getDeclContext()->getRedeclContext(), in computeLVForDecl()
[all …]
DDeclBase.cpp175 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
225 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext()
244 const DeclContext *DC = getDeclContext(); in isInAnonymousNamespace()
255 return getDeclContext()->isStdNamespace(); in isInStdNamespace()
262 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
709 !isa<CXXRecordDecl>(getDeclContext()) || in AccessDeclContextSanity()
1220 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1228 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1309 if (ND->getDeclContext() == DCtx && !shouldBeHidden(ND) && in buildLookupImpl()
1501 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
[all …]
DDeclObjC.cpp667 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface()
734 Decl *CtxD = cast<Decl>(getDeclContext()); in getNextRedeclarationImpl()
771 Decl *CtxD = cast<Decl>(getDeclContext()); in getCanonicalDecl()
951 if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) in getClassInterface()
953 if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) in getClassInterface()
955 if (ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(getDeclContext())) in getClassInterface()
957 if (isa<ObjCProtocolDecl>(getDeclContext())) in getClassInterface()
1043 ProtD = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow()
1047 IMD = dyn_cast<ObjCImplDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow()
1060 CatD = dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow()
[all …]
DTemplateName.cpp92 return Template->getDeclContext() && in isDependent()
93 Template->getDeclContext()->isDependentContext(); in isDependent()
DTemplateBase.cpp120 return getAsDecl()->getDeclContext()->isDependentContext(); in isDependent()
160 return getAsDecl()->getDeclContext()->isDependentContext(); in isInstantiationDependent()
/external/clang/lib/Sema/
DSemaAccess.cpp66 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()
260 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
261 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
362 Context->getDeclContext(), in MightInstantiateTo()
363 Friend->getDeclContext())) in MightInstantiateTo()
478 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend()
[all …]
DSemaTemplateInstantiateDecl.cpp29 const DeclContext *DC = D->getDeclContext(); in isDeclWithinFunction()
256 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateAttrs()
279 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) && in getPreviousDeclForInstantiation()
344 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext()); in InstantiateTypedefNameDecl()
592 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) { in VisitFieldDecl()
864 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition()
933 Pattern->getDeclContext(), in VisitClassTemplateDecl()
1214 } else if (InstTemplate->getDeclContext()->isRecord() && in VisitFunctionTemplateDecl()
1367 DC = SemaRef.FindInstantiatedContext(D->getLocation(), D->getDeclContext(), in VisitFunctionDecl()
1390 assert(D->getDeclContext()->isFileContext()); in VisitFunctionDecl()
[all …]
DIdentifierResolver.cpp136 DeclContext *DCtx = D->getDeclContext()->getRedeclContext(); in isDeclInScope()
331 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
361 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
DSemaDeclObjC.cpp66 !isa<ObjCImplementationDecl>(method->getDeclContext())) in checkInitMethod()
74 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod()
125 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride()
127 DeclContext *DC = NewMethod->getDeclContext(); in CheckObjCMethodOverride()
371 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext()); in ActOnStartOfObjCMethodDef()
373 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext()); in ActOnStartOfObjCMethodDef()
1134 if (Dcl->getDeclContext()->isFileContext()) in ActOnFinishObjCImplementation()
2224 dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) in addMethodToGlobalList()
2297 if (cast<Decl>(Method->getDeclContext())->isInvalidDecl()) in AddMethodToGlobalPool()
2880 = cast<ObjCContainerDecl>(method->getDeclContext()); in OverrideSearch()
[all …]
DSemaDecl.cpp1203 !D->getDeclContext()->getRedeclContext()->Equals( in PushOnScopeChains()
1342 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage()
1370 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl()
1446 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
1447 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl()
2426 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
2527 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages()
2574 !Old->getDeclContext()->getRedeclContext()->Equals( in MergeFunctionDecl()
2575 New->getDeclContext()->getRedeclContext()) && in MergeFunctionDecl()
3114 isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration in mergeObjCMethodDecls()
[all …]
DSemaTemplate.cpp74 Record = cast<CXXRecordDecl>(Record->getDeclContext()); in isAcceptableTemplateName()
917 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext()); in CheckClassTemplate()
939 (OutermostContext->Equals(PrevDecl->getDeclContext()) || in CheckClassTemplate()
940 OutermostContext->Encloses(PrevDecl->getDeclContext()))) { in CheckClassTemplate()
941 SemanticContext = PrevDecl->getDeclContext(); in CheckClassTemplate()
1105 if (!Invalid && TUK != TUK_Friend && NewTemplate->getDeclContext()->isRecord()) in CheckClassTemplate()
1684 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext())) in MatchTemplateParametersToScopeSpecifier()
2147 ClassTemplate->getDeclContext(), in CheckTemplateIdType()
2547 Context, VarTemplate->getDeclContext(), TemplateKWLoc, in ActOnVarTemplateSpecialization()
2590 Context, VarTemplate->getDeclContext(), TemplateKWLoc, TemplateNameLoc, in ActOnVarTemplateSpecialization()
[all …]
DSemaTemplateInstantiate.cpp64 Ctx = D->getDeclContext(); in getTemplateInstantiationArgs()
160 Function->getDeclContext()->isFileContext() && in getTemplateInstantiationArgs()
498 FunctionDecl *FD = cast<FunctionDecl>(Param->getDeclContext()); in PrintInstantiationStack()
845 DeclContext *Owner = OrigTPL->getParam(0)->getDeclContext(); in TransformTemplateParameterList()
1312 assert(!cast<FunctionDecl>(E->getParam()->getDeclContext())-> in TransformCXXDefaultArgExpr()
1316 cast<FunctionDecl>(E->getParam()->getDeclContext()), in TransformCXXDefaultArgExpr()
1998 if (Member->getDeclContext() != Pattern) in InstantiateClass()
2060 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateClass()
2755 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(PV->getDeclContext())) { in getCanonicalParmVarDecl()
DSemaLambda.cpp94 VarToCapture->getDeclContext()->Equals(EnclosingDC)) in getStackIndexOfNearestEnclosingCaptureReadyLambda()
296 = Param->getDeclContext()->getLexicalParent()) in getCurrentMangleNumberContext()
300 if (Var->getDeclContext()->isRecord()) in getCurrentMangleNumberContext()
426 getCurrentMangleNumberContext(Class->getDeclContext(), in startLambdaDefinition()
505 return cast<EnumDecl>(D->getDeclContext()); in findEnumForBlockReturn()
/external/clang/lib/Frontend/
DASTConsumers.cpp304 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
334 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
350 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
366 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
/external/clang/lib/CodeGen/
DCGDebugInfo.cpp201 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName()
782 getContextDescriptor(cast<Decl>(AliasDecl->getDeclContext()))); in CreateType()
794 getContextDescriptor(cast<Decl>(Ty->getDecl()->getDeclContext()))); in CreateType()
1081 if (const CXXRecordDecl *NRD = dyn_cast<CXXRecordDecl>(RD->getDeclContext())) in isFunctionLocalClass()
1083 if (isa<FunctionDecl>(RD->getDeclContext())) in isFunctionLocalClass()
1550 Ty, getContextDescriptor(cast<Decl>(RD->getDeclContext()))); in CreateType()
1941 getContextDescriptor(cast<Decl>(ED->getDeclContext())); in CreateEnumType()
1982 getContextDescriptor(cast<Decl>(ED->getDeclContext())); in CreateTypeDefinition()
2241 getContextDescriptor(cast<Decl>(RD->getDeclContext())); in CreateLimitedType()
2332 dyn_cast_or_null<NamespaceDecl>(FD->getDeclContext())) in collectFunctionDeclProps()
[all …]
/external/clang/tools/libclang/
DIndexDecl.cpp232 D->getDeclContext()); in VisitObjCPropertyImplDecl()
237 !hasUserDefined(MD, cast<ObjCImplDecl>(D->getDeclContext()))) in VisitObjCPropertyImplDecl()
243 !hasUserDefined(MD, cast<ObjCImplDecl>(D->getDeclContext()))) in VisitObjCPropertyImplDecl()
DIndexingContext.cpp338 getContainerInfo(D->getDeclContext(), DInfo.SemanticContainer); in handleDecl()
341 if (LexicalDC == D->getDeclContext()) { in handleDecl()
593 D->getDeclContext()); in handleSynthesizedObjCProperty()
974 if (isa<CXXRecordDecl>(D->getDeclContext())) { in getEntityInfo()
982 CXXRec = dyn_cast<CXXRecordDecl>(D->getDeclContext())) { in getEntityInfo()
/external/clang/lib/ARCMigrate/
DTransGCCalls.cpp49 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
DTransGCAttrs.cpp144 return isMigratable(cast<Decl>(D->getDeclContext())); in isMigratable()
269 cast<Decl>(IndProps.front()->getDeclContext()))) { in checkAllAtProps()
DTransZeroOutPropsInDealloc.cpp107 ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(D->getDeclContext()); in TraverseObjCMethodDecl()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp60 const DeclContext *DC = FD->getDeclContext(); in isCLibraryFunction()
/external/clang/lib/StaticAnalyzer/Checkers/
DLLVMConventionsChecker.cpp42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace()
48 return isa<TranslationUnitDecl>(ND->getDeclContext()); in InNamespace()
DObjCUnusedIVarsChecker.cpp153 Scan(M, D->getDeclContext(), SM.getFileID(D->getLocation()), SM); in checkObjCUnusedIvar()
/external/clang/include/clang/AST/
DDeclBase.h376 DeclContext *getDeclContext() { in getDeclContext() function
381 const DeclContext *getDeclContext() const { in getDeclContext() function
382 return const_cast<Decl*>(this)->getDeclContext(); in getDeclContext()
1153 return cast<Decl>(this)->getDeclContext(); in getParent()

1234