| /openbsd-src/gnu/llvm/clang/lib/Index/ |
| H A D | IndexDecl.cpp | 105 auto *DC = Parm->getDeclContext(); in handleDeclarator() 177 IndexCtx.handleReference(D, AttrLoc, cast<NamedDecl>(D->getDeclContext()), in handleObjCMethod() 178 D->getDeclContext(), 0); in handleObjCMethod() 264 Ctor->getParent(), Ctor->getDeclContext(), in VisitFunctionDecl() 281 Dtor->getParent(), Dtor->getDeclContext(), in VisitFunctionDecl() 287 Guide->getDeclContext()); in VisitFunctionDecl() 433 D->getDeclContext(), SymbolRoleSet()); in VisitObjCInterfaceDecl() 446 D->getDeclContext(), SymbolRoleSet()); in VisitObjCProtocolDecl() 540 auto *Container = cast<ObjCImplDecl>(D->getDeclContext()); in VisitObjCPropertyImplDecl() 586 D->getDeclContext(), SymbolRoleSet()); in VisitObjCPropertyImplDecl() [all …]
|
| H A D | USRGeneration.cpp | 117 VisitDeclContext(D->getDeclContext()); in VisitUsingDecl() 216 VisitDeclContext(D->getDeclContext()); in VisitFieldDecl() 230 VisitDeclContext(D->getDeclContext()); in VisitFunctionDecl() 295 VisitDeclContext(D->getDeclContext()); in VisitNamedDecl() 314 VisitDeclContext(D->getDeclContext()); in VisitVarDecl() 371 VisitDeclContext(D->getDeclContext()); in VisitNamespaceDecl() 385 VisitDeclContext(D->getDeclContext()); in VisitNamespaceAliasDecl() 391 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext())) in getCategoryContext() 393 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext())) in getCategoryContext() 399 const DeclContext *container = D->getDeclContext(); in VisitObjCMethodDecl() [all …]
|
| H A D | IndexingContext.cpp | 63 DC = D->getDeclContext(); in handleDecl() 166 if (const auto *Parent = dyn_cast<Decl>(D->getDeclContext())) in isTemplateImplicitInstantiation() 202 dyn_cast<ClassTemplateSpecializationDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern() 204 else if (const auto *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern() 238 if (const auto *ED = dyn_cast<EnumDecl>(ECD->getDeclContext())) { in adjustTemplateImplicitInstantiation() 278 for (;; Parent = cast<Decl>(Parent->getDeclContext())) { in adjustParent()
|
| H A D | IndexSymbol.cpp | 96 if (isa<ObjCProtocolDecl>(D->getDeclContext())) { in getSymbolInfo() 148 } else if (isa<CXXRecordDecl>(D->getDeclContext())) { in getSymbolInfo() 182 CXXRec = dyn_cast<CXXRecordDecl>(D->getDeclContext())) { in getSymbolInfo() 344 dyn_cast<CXXRecordDecl>(D->getDeclContext())) { in getSymbolInfo()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | ASTImporterLookupTable.cpp | 114 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add() 123 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove() 131 assert(OldDC != ND->getDeclContext() && in update() 133 if (contains(ND->getDeclContext(), ND)) { in update()
|
| H A D | DeclBase.cpp | 269 ? getLexicalDeclContext() : getDeclContext(); in isTemplated() 291 getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in getTemplateDepth() 297 : getDeclContext(); in getParentFunctionOrMethod() 345 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext() 394 for (const DeclContext *DC = getDeclContext(); DC; DC = DC->getParent()) { in isInAnonymousNamespace() 404 const DeclContext *DC = getDeclContext(); in isInStdNamespace() 417 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl() 508 if (auto *dcd = dyn_cast<Decl>(getDeclContext())) { in getExternalSourceSymbolAttr() 997 isa<NonTypeTemplateParmDecl>(this) || !getDeclContext() || in AccessDeclContextCheck() 998 !isa<CXXRecordDecl>(getDeclContext()) || isInvalidDecl() || in AccessDeclContextCheck() [all …]
|
| H A D | DeclObjC.cpp | 882 if (const auto *PD = dyn_cast<const ObjCProtocolDecl>(getDeclContext())) in definedInNSObject() 884 if (const auto *ID = dyn_cast<const ObjCInterfaceDecl>(getDeclContext())) in definedInNSObject() 893 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface() 971 auto *CtxD = cast<Decl>(getDeclContext()); in getNextRedeclarationImpl() 999 if (Redecl && cast<Decl>(Redecl->getDeclContext())->isInvalidDecl()) in getNextRedeclarationImpl() 1013 auto *CtxD = cast<Decl>(getDeclContext()); in getCanonicalDecl() 1212 if (auto *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) in getClassInterface() 1214 if (auto *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) in getClassInterface() 1216 if (auto *IMD = dyn_cast<ObjCImplDecl>(getDeclContext())) in getClassInterface() 1218 if (isa<ObjCProtocolDecl>(getDeclContext())) in getClassInterface() [all …]
|
| H A D | Decl.cpp | 101 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine() 305 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext() 576 if (const auto *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext())) in isSingleLineLanguageLinkage() 649 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && in getLVForNamespaceScopeDecl() 736 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl() 893 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()), in getLVForNamespaceScopeDecl() 987 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember() 1140 const DeclContext *DC = getDeclContext()->getRedeclContext(); in isReserved() 1273 dyn_cast<NamedDecl>(ContextDecl->getDeclContext()->getRedeclContext()); in getLVForClosure() 1277 Owner = dyn_cast<NamedDecl>(ContextDecl->getDeclContext()); in getLVForClosure() [all …]
|
| H A D | QualTypeNames.cpp | 191 const DeclContext *DC = D->getDeclContext(); in createOuterNNS() 195 NS = dyn_cast<NamespaceDecl>(NS->getDeclContext()); in createOuterNNS() 271 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext(); in createNestedNameSpecifierForScopeOf() 346 Namespace = dyn_cast<NamespaceDecl>(Namespace->getDeclContext()); in createNestedNameSpecifier()
|
| H A D | TemplateName.cpp | 263 if (Template->getDeclContext() && in getDependence() 264 Template->getDeclContext()->isDependentContext()) in getDependence()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ObjCPropertyChecker.cpp | 58 dyn_cast<ObjCInterfaceDecl>(D->getDeclContext())) { in checkCopyMutable() 60 } else if (auto *CatD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext())) { in checkCopyMutable()
|
| H A D | LLVMConventionsChecker.cpp | 40 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace() 46 return isa<TranslationUnitDecl>(ND->getDeclContext()); in InNamespace()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | HLSLExternalSemaSource.cpp | 79 if (HLSLNamespace && !Template && Record->getDeclContext() == HLSLNamespace) in ~BuiltinTypeDeclBuilder() 255 AST, MethodDecl->getDeclContext(), SourceLocation(), SourceLocation(), in addArraySubscriptOperator() 332 AST, Builder.Record->getDeclContext(), SourceLocation(), in addTypeParameter() 350 AST, Builder.Record->getDeclContext(), SourceLocation(), in finalizeTemplateArgs() 355 Builder.Template->setLexicalDeclContext(Builder.Record->getDeclContext()); in finalizeTemplateArgs() 359 Builder.Record->getDeclContext()->addDecl(Builder.Template); in finalizeTemplateArgs() 461 Template->setLexicalDeclContext(Record->getDeclContext()); in defineHLSLVectorAlias()
|
| H A 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() 123 DC = Record->getDeclContext(); in EffectiveContext() 130 DC = Function->getDeclContext(); in EffectiveContext() 278 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() 279 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() 381 Context->getDeclContext(), in MightInstantiateTo() 382 Friend->getDeclContext())) in MightInstantiateTo() 491 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend() [all …]
|
| H A D | IdentifierResolver.cpp | 144 DeclContext *DCtx = D->getDeclContext()->getRedeclContext(); in isDeclInScope() 341 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl() 371 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 37 const DeclContext *DC = D->getDeclContext(); in isDeclWithinFunction() 320 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext()); in instantiateOMPDeclareSimdDeclAttr() 403 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext()); in instantiateOMPDeclareVariantAttr() 671 *this, dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()), in InstantiateAttrsForDecl() 825 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateAttrs() 868 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) && in getPreviousDeclForInstantiation() 962 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext()); in InstantiateTypedefNameDecl() 1266 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) { in VisitFieldDecl() 1546 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition() 1617 Pattern->getDeclContext(), in VisitClassTemplateDecl() [all …]
|
| H A D | SemaDeclObjC.cpp | 67 !isa<ObjCImplementationDecl>(method->getDeclContext())) in checkInitMethod() 75 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod() 133 << cast<ObjCMethodDecl>(NewD->getDeclContext()); in diagnoseNoescape() 149 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride() 151 DeclContext *DC = NewMethod->getDeclContext(); in CheckObjCMethodOverride() 443 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext()); in ActOnStartOfObjCMethodDef() 445 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext()); in ActOnStartOfObjCMethodDef() 864 !(isa<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) && in checkTypeParamListConsistency() 865 cast<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) in checkTypeParamListConsistency() 866 ->getDefinition() == prevTypeParam->getDeclContext())) { in checkTypeParamListConsistency() [all …]
|
| H A D | SemaTemplate.cpp | 126 Record = cast<CXXRecordDecl>(Record->getDeclContext()); in getAsTemplateNameDecl() 837 << Instantiation->getDeclContext(); in DiagnoseUninstantiableTemplate() 868 << Instantiation->getDeclContext(); in DiagnoseUninstantiableTemplate() 1911 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext()); in CheckClassTemplate() 1933 (OutermostContext->Equals(PrevDecl->getDeclContext()) || in CheckClassTemplate() 1934 OutermostContext->Encloses(PrevDecl->getDeclContext()))) { in CheckClassTemplate() 1935 SemanticContext = PrevDecl->getDeclContext(); in CheckClassTemplate() 1967 PrevClassTemplate->getDeclContext()->getRedeclContext()->Equals( in CheckClassTemplate() 2118 if (!Invalid && TUK != TUK_Friend && NewTemplate->getDeclContext()->isRecord()) in CheckClassTemplate() 2203 if (OrigDecl->getDeclContext()->isDependentContext()) { in TransformTypedefType() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | CxxModuleHandler.cpp | 193 if (!td->getDeclContext()->isStdNamespace()) in tryInstantiateStdTemplate() 209 getEqualLocalDeclContext(*m_sema, td->getDeclContext()); in tryInstantiateStdTemplate() 279 new_class_template->getDeclContext(), in tryInstantiateStdTemplate()
|
| /openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/ |
| H A D | Lookup.cpp | 203 isa<TranslationUnitDecl>(FromDecl->getDeclContext()); in replaceNestedName() 208 !usingFromDifferentCanonicalNamespace(FromDecl->getDeclContext(), in replaceNestedName()
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/FlowSensitive/Models/ |
| H A D | ChromiumCheckModel.cpp | 36 dyn_cast_or_null<NamespaceDecl>(ParentClass->getDeclContext()); in isCheckLikeMethod()
|
| /openbsd-src/gnu/llvm/clang/lib/ARCMigrate/ |
| H A D | TransGCCalls.cpp | 48 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
|
| /openbsd-src/gnu/llvm/clang/examples/Attribute/ |
| H A D | Attribute.cpp | 52 if (!D->getDeclContext()->isFileContext()) { in handleDeclAttribute()
|
| /openbsd-src/gnu/llvm/lldb/tools/lldb-test/ |
| H A D | lldb-test.cpp | 238 static Expected<CompilerDeclContext> getDeclContext(SymbolFile &Symfile); 449 opts::symbols::getDeclContext(SymbolFile &Symfile) { in getDeclContext() function in opts::symbols 502 Expected<CompilerDeclContext> ContextOr = getDeclContext(Symfile); in findFunctions() 559 Expected<CompilerDeclContext> ContextOr = getDeclContext(Symfile); in findNamespaces() 577 Expected<CompilerDeclContext> ContextOr = getDeclContext(Symfile); in findTypes() 632 Expected<CompilerDeclContext> ContextOr = getDeclContext(Symfile); in findVariables()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGDebugInfo.cpp | 208 return getContextDescriptor(cast<Decl>(D->getDeclContext()), in getDeclContextDescriptor() 270 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName() 310 assert(RD->getDeclContext() == D->getDeclContext() && in getClassName() 1357 const DeclContext *DC = Ty->getDecl()->getDeclContext(); in CreateType() 1677 nestedType->getDeclContext() == record) in CollectRecordFields() 1759 if (const auto *NRD = dyn_cast<CXXRecordDecl>(RD->getDeclContext())) in isFunctionLocalClass() 1761 if (isa<FunctionDecl>(RD->getDeclContext())) in isFunctionLocalClass() 3611 dyn_cast<CXXRecordDecl>(CXXRD->getDeclContext())); in CreateLimitedType() 3718 dyn_cast_or_null<NamespaceDecl>(FD->getDeclContext())) in collectFunctionDeclProps() 3721 dyn_cast_or_null<RecordDecl>(FD->getDeclContext())) { in collectFunctionDeclProps() [all …]
|