Home
last modified time | relevance | path

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

12345678910>>...12

/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/llvm-project/clang/lib/Index/
DIndexDecl.cpp101 auto *DC = Parm->getDeclContext(); in handleDeclarator()
171 IndexCtx.handleReference(D, AttrLoc, cast<NamedDecl>(D->getDeclContext()), in handleObjCMethod()
172 D->getDeclContext(), 0); in handleObjCMethod()
258 Ctor->getParent(), Ctor->getDeclContext(), in VisitFunctionDecl()
275 Dtor->getParent(), Dtor->getDeclContext(), in VisitFunctionDecl()
281 Guide->getDeclContext()); in VisitFunctionDecl()
418 D->getDeclContext(), SymbolRoleSet()); in VisitObjCInterfaceDecl()
431 D->getDeclContext(), SymbolRoleSet()); in VisitObjCProtocolDecl()
525 auto *Container = cast<ObjCImplDecl>(D->getDeclContext()); in VisitObjCPropertyImplDecl()
571 D->getDeclContext(), SymbolRoleSet()); in VisitObjCPropertyImplDecl()
[all …]
DUSRGeneration.cpp116 VisitDeclContext(D->getDeclContext()); in VisitUsingDecl()
212 VisitDeclContext(D->getDeclContext()); in VisitFieldDecl()
226 VisitDeclContext(D->getDeclContext()); in VisitFunctionDecl()
291 VisitDeclContext(D->getDeclContext()); in VisitNamedDecl()
310 VisitDeclContext(D->getDeclContext()); in VisitVarDecl()
367 VisitDeclContext(D->getDeclContext()); in VisitNamespaceDecl()
381 VisitDeclContext(D->getDeclContext()); in VisitNamespaceAliasDecl()
387 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext())) in getCategoryContext()
389 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext())) in getCategoryContext()
395 const DeclContext *container = D->getDeclContext(); in VisitObjCMethodDecl()
[all …]
DIndexingContext.cpp63 DC = D->getDeclContext(); in handleDecl()
167 if (const auto *Parent = dyn_cast<Decl>(D->getDeclContext())) in isTemplateImplicitInstantiation()
203 dyn_cast<ClassTemplateSpecializationDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern()
205 else if (const auto *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern()
239 if (const auto *ED = dyn_cast<EnumDecl>(ECD->getDeclContext())) { in adjustTemplateImplicitInstantiation()
282 for (;; Parent = cast<Decl>(Parent->getDeclContext())) { in adjustParent()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DPreferRegisterOverUnsignedCheck.cpp42 const DeclContext *Context = UserVarDecl->getDeclContext(); in check()
45 if (isa<TranslationUnitDecl>(Namespace->getDeclContext()) && in check()
50 if (isa<TranslationUnitDecl>(Namespace->getDeclContext()) && in check()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DRemoveUsingNamespace.cpp58 TargetCtx(Target.getDeclContext()), Results(Results) {} in FindSameUsings()
62 D->getDeclContext() != TargetCtx) in VisitUsingDirectiveDecl()
115 if (!dyn_cast<Decl>(TargetDirective->getDeclContext())) in prepare()
156 if (!visibleContext(T->getDeclContext()) in apply()
DAddUsing.cpp75 if (D->getDeclContext()->Encloses(SelectionDeclContext)) { in VisitUsingDecl()
85 if (Node->getDeclContext()->Encloses(SelectionDeclContext)) { in TraverseDecl()
136 UsingFinder(Usings, &Inputs.ASTSelection.commonAncestor()->getDeclContext(), in findInsertionPoint()
179 &Inputs.ASTSelection.commonAncestor()->getDeclContext(); in findInsertionPoint()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DObjCPropertyChecker.cpp58 dyn_cast<ObjCInterfaceDecl>(D->getDeclContext())) { in checkCopyMutable()
60 } else if (auto *CatD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext())) { in checkCopyMutable()
/external/llvm-project/clang/lib/AST/
DDeclBase.cpp260 auto *DC = getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in isTemplated()
282 getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in getTemplateDepth()
287 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
336 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext()
385 for (const DeclContext *DC = getDeclContext(); DC; DC = DC->getParent()) { in isInAnonymousNamespace()
395 const DeclContext *DC = getDeclContext(); in isInStdNamespace()
403 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
494 if (auto *dcd = dyn_cast<Decl>(getDeclContext())) { in getExternalSourceSymbolAttr()
977 !getDeclContext() || in AccessDeclContextSanity()
978 !isa<CXXRecordDecl>(getDeclContext()) || in AccessDeclContextSanity()
[all …]
DDeclObjC.cpp838 if (const auto *PD = dyn_cast<const ObjCProtocolDecl>(getDeclContext())) in definedInNSObject()
840 if (const auto *ID = dyn_cast<const ObjCInterfaceDecl>(getDeclContext())) in definedInNSObject()
849 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface()
919 auto *CtxD = cast<Decl>(getDeclContext()); in getNextRedeclarationImpl()
947 if (Redecl && cast<Decl>(Redecl->getDeclContext())->isInvalidDecl()) in getNextRedeclarationImpl()
961 auto *CtxD = cast<Decl>(getDeclContext()); in getCanonicalDecl()
1160 if (auto *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) in getClassInterface()
1162 if (auto *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) in getClassInterface()
1164 if (auto *IMD = dyn_cast<ObjCImplDecl>(getDeclContext())) in getClassInterface()
1166 if (isa<ObjCProtocolDecl>(getDeclContext())) in getClassInterface()
[all …]
DDecl.cpp100 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine()
304 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext()
565 if (const auto *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext())) in isSingleLineLanguageLinkage()
630 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && in getLVForNamespaceScopeDecl()
717 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl()
863 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()), in getLVForNamespaceScopeDecl()
961 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember()
1199 dyn_cast<NamedDecl>(ContextDecl->getDeclContext()->getRedeclContext()); in getLVForClosure()
1289 LV = getLVForClosure(BD->getDeclContext()->getRedeclContext(), in getLVForLocalDecl()
1357 return getLVForDecl(cast<EnumDecl>(D->getDeclContext()), computation); in computeLVForDecl()
[all …]
DQualTypeNames.cpp189 const DeclContext *DC = D->getDeclContext(); in createOuterNNS()
193 NS = dyn_cast<NamespaceDecl>(NS->getDeclContext()); in createOuterNNS()
269 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext(); in createNestedNameSpecifierForScopeOf()
344 Namespace = dyn_cast<NamespaceDecl>(Namespace->getDeclContext()); in createNestedNameSpecifier()
/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/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 …]
/external/llvm-project/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()
264 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
265 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
367 Context->getDeclContext(), in MightInstantiateTo()
368 Friend->getDeclContext())) in MightInstantiateTo()
477 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend()
[all …]
/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 …]
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DDefinitionsInHeadersCheck.cpp112 const auto *DC = MD->getDeclContext(); in check()
138 if (VD->getDeclContext()->isDependentContext() && VD->isStaticDataMember()) in check()
DNewDeleteOverloadsCheck.cpp179 if (FD->getDeclContext() != Overload->getDeclContext()) in onEndOfTranslationUnit()
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DCxxModuleHandler.cpp187 if (!td->getDeclContext()->isStdNamespace()) in tryInstantiateStdTemplate()
203 getEqualLocalDeclContext(*m_sema, td->getDeclContext()); in tryInstantiateStdTemplate()
273 new_class_template->getDeclContext(), in tryInstantiateStdTemplate()
/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()

12345678910>>...12