Home
last modified time | relevance | path

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

12345

/external/clang/lib/Index/
DIndexDecl.cpp58 auto *DC = Parm->getDeclContext(); in handleDeclarator()
162 cast<Decl>(D->getDeclContext())->getLocation(), in VisitObjCIvarDecl()
196 auto *Parent = dyn_cast<NamedDecl>(D->getDeclContext()); in VisitTagDecl()
231 D->getDeclContext(), SymbolRoleSet()); in VisitObjCInterfaceDecl()
243 D->getDeclContext(), SymbolRoleSet()); in VisitObjCProtocolDecl()
315 /*Parent=*/cast<NamedDecl>(D->getDeclContext()), in VisitObjCPropertyImplDecl()
316 D->getDeclContext(), SymbolRoleSet(), {}, in VisitObjCPropertyImplDecl()
327 D->getDeclContext(), SymbolRoleSet()); in VisitObjCPropertyImplDecl()
330 auto *ImplD = cast<ObjCImplDecl>(D->getDeclContext()); in VisitObjCPropertyImplDecl()
352 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUsingDecl()
[all …]
DUSRGeneration.cpp192 VisitDeclContext(D->getDeclContext()); in VisitFieldDecl()
205 VisitDeclContext(D->getDeclContext()); in VisitFunctionDecl()
266 VisitDeclContext(D->getDeclContext()); in VisitNamedDecl()
285 VisitDeclContext(D->getDeclContext()); in VisitVarDecl()
316 VisitDeclContext(D->getDeclContext()); in VisitNamespaceDecl()
330 VisitDeclContext(D->getDeclContext()); in VisitNamespaceAliasDecl()
336 const DeclContext *container = D->getDeclContext(); in VisitObjCMethodDecl()
413 Visit(cast<Decl>(D->getDeclContext())); in VisitObjCPropertyDecl()
434 VisitDeclContext(D->getDeclContext()); in VisitTagDecl()
514 const DeclContext *DC = D->getDeclContext(); in VisitTypedefDecl()
DIndexingContext.cpp28 cast<Decl>(D->getDeclContext()), Roles, Relations, in handleDecl()
29 nullptr, nullptr, D->getDeclContext()); in handleDecl()
37 DC = D->getDeclContext(); in handleDecl()
201 for (;; Parent = cast<Decl>(Parent->getDeclContext())) { in adjustParent()
/external/clang/lib/AST/
DDecl.cpp45 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine()
302 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext()
572 if (const auto *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext())) in isSingleLineLanguageLinkage()
580 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && in getLVForNamespaceScopeDecl()
662 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl()
805 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()), in getLVForNamespaceScopeDecl()
891 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember()
1122 DC = ContextDecl->getDeclContext()->getRedeclContext(); in getLVForClosure()
1198 LV = getLVForClosure(BD->getDeclContext()->getRedeclContext(), in getLVForLocalDecl()
1256 return getLVForDecl(cast<EnumDecl>(D->getDeclContext()), computation); in computeLVForDecl()
[all …]
DDeclObjC.cpp776 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface()
847 Decl *CtxD = cast<Decl>(getDeclContext()); in getNextRedeclarationImpl()
884 Decl *CtxD = cast<Decl>(getDeclContext()); in getCanonicalDecl()
1072 if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) in getClassInterface()
1074 if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) in getClassInterface()
1076 if (ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(getDeclContext())) in getClassInterface()
1078 if (isa<ObjCProtocolDecl>(getDeclContext())) in getClassInterface()
1100 .substObjCMemberType(receiverType, getDeclContext(), in getSendResultType()
1178 ProtD = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow()
1182 IMD = dyn_cast<ObjCImplDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow()
[all …]
DDeclBase.cpp212 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
262 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext()
294 const DeclContext *DC = getDeclContext(); in isInAnonymousNamespace()
305 return getDeclContext()->isStdNamespace(); in isInStdNamespace()
312 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
792 !isa<CXXRecordDecl>(getDeclContext()) || in AccessDeclContextSanity()
1300 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1308 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1389 if (ND->getDeclContext() == DCtx && !shouldBeHidden(ND) && in buildLookupImpl()
1581 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
[all …]
DTemplateName.cpp142 return Template->getDeclContext() && in isDependent()
143 Template->getDeclContext()->isDependentContext(); in isDependent()
/external/clang/lib/Tooling/Core/
DLookup.cpp99 isa<TranslationUnitDecl>(FromDecl->getDeclContext()); in replaceNestedName()
101 !isInsideDifferentNamespaceWithSameName(FromDecl->getDeclContext(), in replaceNestedName()
DQualTypeNames.cpp205 const DeclContext *DC = D->getDeclContext(); in createOuterNNS()
209 NS = dyn_cast<NamespaceDecl>(NS->getDeclContext()); in createOuterNNS()
285 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext(); in createNestedNameSpecifierForScopeOf()
360 Namespace = dyn_cast<NamespaceDecl>(Namespace->getDeclContext()); in createNestedNameSpecifier()
/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()
265 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
266 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
368 Context->getDeclContext(), in MightInstantiateTo()
369 Friend->getDeclContext())) in MightInstantiateTo()
478 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend()
[all …]
DSemaTemplateInstantiateDecl.cpp29 const DeclContext *DC = D->getDeclContext(); in isDeclWithinFunction()
246 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext()); in instantiateOMPDeclareSimdDeclAttr()
392 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateAttrs()
415 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) && in getPreviousDeclForInstantiation()
490 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext()); in InstantiateTypedefNameDecl()
731 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) { in VisitFieldDecl()
1012 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition()
1086 Pattern->getDeclContext(), in VisitClassTemplateDecl()
1368 } else if (InstTemplate->getDeclContext()->isRecord() && in VisitFunctionTemplateDecl()
1539 DC = SemaRef.FindInstantiatedContext(D->getLocation(), D->getDeclContext(), 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.cpp67 !isa<ObjCImplementationDecl>(method->getDeclContext())) in checkInitMethod()
75 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()
787 !(isa<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) && in checkTypeParamListConsistency()
788 cast<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) in checkTypeParamListConsistency()
789 ->getDefinition() == prevTypeParam->getDeclContext())) { in checkTypeParamListConsistency()
2008 if (Dcl->getDeclContext()->isFileContext()) in ActOnFinishObjCImplementation()
[all …]
DSemaDecl.cpp1260 !D->getDeclContext()->getRedeclContext()->Equals( in PushOnScopeChains()
1399 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage()
1427 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl()
1506 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
1507 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl()
2531 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
2659 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages()
2699 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl()
2700 New->getDeclContext()->getRedeclContext()) && in checkUsingShadowRedecl()
3303 isa<ObjCProtocolDecl>(oldMethod->getDeclContext()) in mergeObjCMethodDecls()
[all …]
DSemaTemplate.cpp76 Record = cast<CXXRecordDecl>(Record->getDeclContext()); in isAcceptableTemplateName()
950 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext()); in CheckClassTemplate()
972 (OutermostContext->Equals(PrevDecl->getDeclContext()) || in CheckClassTemplate()
973 OutermostContext->Encloses(PrevDecl->getDeclContext()))) { in CheckClassTemplate()
974 SemanticContext = PrevDecl->getDeclContext(); in CheckClassTemplate()
1006 PrevClassTemplate->getDeclContext()->getRedeclContext()->Equals( in CheckClassTemplate()
1144 if (!Invalid && TUK != TUK_Friend && NewTemplate->getDeclContext()->isRecord()) in CheckClassTemplate()
1713 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext())) in MatchTemplateParametersToScopeSpecifier()
2250 ClassTemplate->getDeclContext(), in CheckTemplateIdType()
2633 Context, VarTemplate->getDeclContext(), TemplateKWLoc, in ActOnVarTemplateSpecialization()
[all …]
DSemaLambda.cpp94 VarToCapture->getDeclContext()->Equals(EnclosingDC)) in getStackIndexOfNearestEnclosingCaptureReadyLambda()
297 = Param->getDeclContext()->getLexicalParent()) in getCurrentMangleNumberContext()
301 if (Var->getDeclContext()->isRecord()) in getCurrentMangleNumberContext()
427 getCurrentMangleNumberContext(Class->getDeclContext(), in startLambdaDefinition()
506 return cast<EnumDecl>(D->getDeclContext()); in findEnumForBlockReturn()
1607 !Class->getDeclContext()->isDependentContext()) { in BuildLambdaExpr()
DSemaTemplateInstantiate.cpp65 Ctx = D->getDeclContext(); in getTemplateInstantiationArgs()
161 Function->getDeclContext()->isFileContext() && in getTemplateInstantiationArgs()
497 FunctionDecl *FD = cast<FunctionDecl>(Param->getDeclContext()); in PrintInstantiationStack()
831 DeclContext *Owner = OrigTPL->getParam(0)->getDeclContext(); in TransformTemplateParameterList()
1298 assert(!cast<FunctionDecl>(E->getParam()->getDeclContext())-> in TransformCXXDefaultArgExpr()
1302 cast<FunctionDecl>(E->getParam()->getDeclContext()), in TransformCXXDefaultArgExpr()
1668 FunctionDecl *OwningFunc = cast<FunctionDecl>(OldParm->getDeclContext()); in SubstParmVarDecl()
2008 if (Member->getDeclContext() != Pattern) in InstantiateClass()
2073 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateClass()
2752 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(PV->getDeclContext())) { in getCanonicalParmVarDecl()
/external/clang/lib/Frontend/
DASTConsumers.cpp303 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
332 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
348 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
364 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
/external/v8/tools/clang/plugins/
DUtil.cpp36 return GetNamespaceImpl(record->getDeclContext(), std::string()); in GetNamespace()
/external/clang/lib/CodeGen/
DCGDebugInfo.cpp156 return getContextDescriptor(cast<Decl>(D->getDeclContext()), in getDeclContextDescriptor()
224 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName()
279 assert(RD->getDeclContext() == D->getDeclContext() && in getClassName()
1204 if (const CXXRecordDecl *NRD = dyn_cast<CXXRecordDecl>(RD->getDeclContext())) in isFunctionLocalClass()
1206 if (isa<FunctionDecl>(RD->getDeclContext())) in isFunctionLocalClass()
2627 dyn_cast_or_null<NamespaceDecl>(FD->getDeclContext())) in collectFunctionDeclProps()
2630 dyn_cast_or_null<RecordDecl>(FD->getDeclContext())) { in collectFunctionDeclProps()
2659 if (VD->getDeclContext() && !isa<FunctionDecl>(VD->getDeclContext()) && in collectVarDeclProps()
2660 !isa<ObjCMethodDecl>(VD->getDeclContext())) in collectVarDeclProps()
2672 : VD->getDeclContext(); in collectVarDeclProps()
[all …]
/external/clang/lib/ARCMigrate/
DTransGCCalls.cpp49 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
/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()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp68 if (!FD->getDeclContext()->getRedeclContext()->isTranslationUnit()) in isCLibraryFunction()
/external/clang/unittests/Tooling/
DLookupTest.cpp40 Callee->getQualifier(), Visitor.DeclStack.back()->getDeclContext(), FD, in TEST()
/external/clang/lib/Serialization/
DASTWriterDecl.cpp283 Record.AddDeclRef(cast_or_null<Decl>(D->getDeclContext())); in VisitDecl()
284 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl()
309 auto *DC = D->getDeclContext(); in VisitDecl()
372 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl()
435 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitEnumDecl()
464 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitRecordDecl()
721 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl()
853 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl()
930 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitVarDecl()
980 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitParmVarDecl()
[all …]

12345