| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTImporterLookupTable.cpp | 98 if (auto *Ns = dyn_cast<NamespaceDecl>(D->getDeclContext())) in ASTImporterLookupTable() 100 add(D->getDeclContext(), D); in ASTImporterLookupTable() 129 DeclContext *DC = ND->getDeclContext(); in add() 138 DeclContext *DC = ND->getDeclContext(); in remove() 146 assert(OldDC != ND->getDeclContext() && in update() 148 if (contains(ND->getDeclContext(), ND)) { in update()
|
| H A D | DeclBase.cpp | 297 ? getLexicalDeclContext() : getDeclContext(); in isTemplated() 319 getFriendObjectKind() ? getLexicalDeclContext() : getDeclContext(); in getTemplateDepth() 325 : getDeclContext(); in getParentFunctionOrMethod() 373 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext() 422 for (const DeclContext *DC = getDeclContext(); DC; DC = DC->getParent()) { in isInAnonymousNamespace() 432 const DeclContext *DC = getDeclContext(); in isInStdNamespace() 518 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl() 609 if (auto *dcd = dyn_cast<Decl>(getDeclContext())) { in getExternalSourceSymbolAttr() 1109 isa<NonTypeTemplateParmDecl>(this) || !getDeclContext() || in AccessDeclContextCheck() 1110 !isa<CXXRecordDecl>(getDeclContext()) || isInvalidDecl() || in AccessDeclContextCheck() [all …]
|
| H A D | DeclObjC.cpp | 879 if (const auto *PD = dyn_cast<const ObjCProtocolDecl>(getDeclContext())) in definedInNSObject() 881 if (const auto *ID = dyn_cast<const ObjCInterfaceDecl>(getDeclContext())) in definedInNSObject() 890 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface() 968 auto *CtxD = cast<Decl>(getDeclContext()); in getNextRedeclarationImpl() 996 if (Redecl && cast<Decl>(Redecl->getDeclContext())->isInvalidDecl()) in getNextRedeclarationImpl() 1010 auto *CtxD = cast<Decl>(getDeclContext()); in getCanonicalDecl() 1209 if (auto *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) in getClassInterface() 1211 if (auto *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) in getClassInterface() 1213 if (auto *IMD = dyn_cast<ObjCImplDecl>(getDeclContext())) in getClassInterface() 1215 if (isa<ObjCProtocolDecl>(getDeclContext())) in getClassInterface() [all …]
|
| H A D | Decl.cpp | 100 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine() 304 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext() 580 if (const auto *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext())) in isSingleLineLanguageLinkage() 606 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && in getLVForNamespaceScopeDecl() 706 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl() 863 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()), in getLVForNamespaceScopeDecl() 957 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember() 1109 if (!getDeclContext()->isFunctionOrMethod() && in isPlaceholderVar() 1110 !getDeclContext()->isRecord()) in isPlaceholderVar() 1124 BD && getDeclContext()->isFunctionOrMethod()) { in isPlaceholderVar() [all …]
|
| H A D | QualTypeNames.cpp | 189 const DeclContext *DC = D->getDeclContext(); in createOuterNNS() 193 NS = dyn_cast<NamespaceDecl>(NS->getDeclContext()); in createOuterNNS() 268 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext(); in createNestedNameSpecifierForScopeOf() 343 Namespace = dyn_cast<NamespaceDecl>(Namespace->getDeclContext()); in createNestedNameSpecifier()
|
| H A D | Availability.cpp | 102 Ctx = llvm::cast_or_null<Decl>(Ctx->getDeclContext())) in createFromDecl()
|
| /freebsd/contrib/llvm-project/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 | 115 VisitDeclContext(D->getDeclContext()); in VisitUsingDecl() 214 VisitDeclContext(D->getDeclContext()); in VisitFieldDecl() 233 VisitDeclContext(D->getDeclContext()); in VisitFunctionDecl() 308 VisitDeclContext(D->getDeclContext()); in VisitNamedDecl() 327 VisitDeclContext(D->getDeclContext()); in VisitVarDecl() 381 VisitDeclContext(D->getDeclContext()); in VisitNamespaceDecl() 398 VisitDeclContext(D->getDeclContext()); in VisitNamespaceAliasDecl() 404 if (auto *CD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext())) in getCategoryContext() 406 if (auto *ICD = dyn_cast<ObjCCategoryImplDecl>(D->getDeclContext())) in getCategoryContext() 412 const DeclContext *container = D->getDeclContext(); in VisitObjCMethodDecl() [all …]
|
| H A D | IndexingContext.cpp | 75 DC = D->getDeclContext(); in handleDecl() 177 if (const auto *Parent = dyn_cast<Decl>(D->getDeclContext())) in isTemplateImplicitInstantiation() 213 dyn_cast<ClassTemplateSpecializationDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern() 215 else if (const auto *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern() 249 if (const auto *ED = dyn_cast<EnumDecl>(ECD->getDeclContext())) { in adjustTemplateImplicitInstantiation() 289 for (;; Parent = cast<Decl>(Parent->getDeclContext())) { in adjustParent()
|
| H A D | IndexSymbol.cpp | 97 if (isa<ObjCProtocolDecl>(D->getDeclContext())) { in getSymbolInfo() 149 } else if (isa<CXXRecordDecl>(D->getDeclContext())) { in getSymbolInfo() 183 CXXRec = dyn_cast<CXXRecordDecl>(D->getDeclContext())) { in getSymbolInfo() 345 dyn_cast<CXXRecordDecl>(D->getDeclContext())) { in getSymbolInfo()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTemplateDeductionGuide.cpp | 101 if (WalkUp(Typedef->getDeclContext(), NestedPattern->getTemplatedDecl())) in mightReferToOuterTemplateParameters() 103 if (WalkUp(NestedPattern->getTemplatedDecl(), Typedef->getDeclContext())) in mightReferToOuterTemplateParameters() 143 bool InDependentContext = OrigDecl->getDeclContext()->isDependentContext(); in TransformTypedefType() 204 DeclContext *DC = OriginalTemplate->getDeclContext(); 325 DeclContext *DC = Template->getDeclContext(); 809 SemaRef, AliasTemplate->getDeclContext(), TP, Args, in buildAssociatedConstraints() 835 transformTemplateParameter(SemaRef, F->getDeclContext(), TP, Args, in buildAssociatedConstraints() 937 SemaRef, AliasTemplate->getDeclContext(), TP, Args, in buildIsDeducibleConstraint() 1137 SemaRef, AliasTemplate->getDeclContext(), TP, Args, in BuildDeductionGuideForTypeAlias() 1192 SemaRef, F->getDeclContext(), TP, Args, FPrimeTemplateParams.size(), in BuildDeductionGuideForTypeAlias() [all …]
|
| H A D | HLSLExternalSemaSource.cpp | 120 Template->setLexicalDeclContext(Record->getDeclContext()); in defineHLSLVectorAlias() 217 DeclContext *DC = NSD->getDeclContext(); in constructBufferConceptDecl() 222 Context, NSD->getDeclContext(), DeclLoc, DeclLoc, in constructBufferConceptDecl() 251 ConceptDecl::Create(Context, NSD->getDeclContext(), DeclLoc, DeclName, in constructBufferConceptDecl() 258 NSD->getDeclContext()->addDecl(CD); in constructBufferConceptDecl()
|
| H A D | SemaAccess.cpp | 62 DeclContext *DC = D->getDeclContext(); in FindDeclaringClass() 67 DC = cast<EnumDecl>(DC)->getDeclContext(); in FindDeclaringClass() 71 DeclaringClass = cast<CXXRecordDecl>(DeclaringClass->getDeclContext()); in FindDeclaringClass() 119 DC = Record->getDeclContext(); in EffectiveContext() 126 DC = Function->getDeclContext(); in EffectiveContext() 284 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() 285 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() 387 Context->getDeclContext(), in MightInstantiateTo() 388 Friend->getDeclContext())) in MightInstantiateTo() 497 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend() [all …]
|
| H A D | HLSLBuiltinTypeDeclBuilder.cpp | 182 AST, Builder.Record->getDeclContext(), SourceLocation(), SourceLocation(), in addTypeParameter() 225 DeclContext *DC = Builder.Record->getDeclContext(); in constructConceptSpecializationExpr() 241 Builder.Record->getDeclContext(), // DeclContext in constructConceptSpecializationExpr() 267 Context, Builder.Record->getDeclContext(), Loc, {CSETA}); in constructConceptSpecializationExpr() 302 AST, Builder.Record->getDeclContext(), SourceLocation(), in finalizeTemplateArgs() 308 Builder.Template->setLexicalDeclContext(Builder.Record->getDeclContext()); in finalizeTemplateArgs() 313 Builder.Record->getDeclContext()->addDecl(Builder.Template); in finalizeTemplateArgs() 409 AST, Method->getDeclContext(), SourceLocation(), SourceLocation(), in createDecl() 569 if (HLSLNamespace && !Template && Record->getDeclContext() == HLSLNamespace) in ~BuiltinTypeDeclBuilder()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 42 const DeclContext *DC = D->getDeclContext(); in isDeclWithinFunction() 340 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext()); in instantiateOMPDeclareSimdDeclAttr() 423 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext()); in instantiateOMPDeclareVariantAttr() 762 *this, dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()), in InstantiateAttrsForDecl() 952 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateAttrs() 1001 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) && in getPreviousDeclForInstantiation() 1460 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext()); in InstantiateTypedefNameDecl() 1809 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) { in VisitFieldDecl() 2155 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition() 2226 Pattern->getDeclContext(), in VisitClassTemplateDecl() [all …]
|
| H A D | SemaDeclObjC.cpp | 70 !isa<ObjCImplementationDecl>(method->getDeclContext())) in checkInitMethod() 78 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod() 137 << cast<ObjCMethodDecl>(NewD->getDeclContext()); in diagnoseNoescape() 154 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride() 156 DeclContext *DC = NewMethod->getDeclContext(); in CheckObjCMethodOverride() 450 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext()); in ActOnStartOfObjCMethodDef() 452 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 | SemaDecl.cpp | 119 RD = cast<CXXRecordDecl>(RD->getDeclContext()); in ValidateCandidate() 1787 if (D->getDeclContext()->isFileContext()) in isUsingDeclNotAtClassScope() 1825 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage() 1853 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl() 1964 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl() 1965 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl() 2402 CurContext = New->getDeclContext(); in LazilyCreateBuiltin() 3340 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes() 3491 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages() 3532 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl() [all …]
|
| H A D | SemaTemplate.cpp | 127 Record = cast<CXXRecordDecl>(Record->getDeclContext()); in getAsTemplateNameDecl() 816 << Instantiation->getDeclContext(); in DiagnoseUninstantiableTemplate() 847 << Instantiation->getDeclContext(); in DiagnoseUninstantiableTemplate() 1943 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext()); in CheckClassTemplate() 1965 (OutermostContext->Equals(PrevDecl->getDeclContext()) || in CheckClassTemplate() 1966 OutermostContext->Encloses(PrevDecl->getDeclContext()))) { in CheckClassTemplate() 1967 SemanticContext = PrevDecl->getDeclContext(); in CheckClassTemplate() 1998 PrevClassTemplate->getDeclContext()->getRedeclContext()->Equals( in CheckClassTemplate() 2156 NewTemplate->getDeclContext()->isRecord()) in CheckClassTemplate() 2771 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext())) in MatchTemplateParametersToScopeSpecifier() [all …]
|
| H A D | SemaObjCProperty.cpp | 393 auto *OldDC = OldProperty->getDeclContext(); in checkAtomicPropertyMismatch() 434 if (PIDecl && isa<ObjCCategoryDecl>(PIDecl->getDeclContext())) { in HandlePropertyInClassExtension() 827 assert(isa<ObjCProtocolDecl>(Property->getDeclContext()) && in SelectPropertyForSynthesisFromProtocols() 1012 auto Category = dyn_cast<ObjCCategoryDecl>(Prop->getDeclContext()); in hasWrittenStorageAttribute() 1114 dyn_cast<ObjCCategoryDecl>(property->getDeclContext())) { in ActOnPropertyImplDecl() 1152 if (Synthesize && isa<ObjCProtocolDecl>(property->getDeclContext())) in ActOnPropertyImplDecl() 1666 isa<ObjCProtocolDecl>(SuperProperty->getDeclContext()))) { in DiagnosePropertyMismatch() 1919 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) { in DefaultSynthesizeProperties() 2277 if (getterRedecl->getDeclContext() != PD->getDeclContext()) in DiagnoseOwningPropertyGetterSynthesis() 2368 ObjCContainerDecl *CD = cast<ObjCContainerDecl>(property->getDeclContext()); in ProcessPropertyDecl()
|
| /freebsd/contrib/llvm-project/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() 280 new_class_template->getDeclContext(), in tryInstantiateStdTemplate()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/ |
| H A D | ChromiumCheckModel.cpp | 37 dyn_cast_or_null<NamespaceDecl>(ParentClass->getDeclContext()); in isCheckLikeMethod()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | LLVMConventionsChecker.cpp | 40 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace() 46 return isa<TranslationUnitDecl>(ND->getDeclContext()); in InNamespace()
|
| /freebsd/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTWriterDecl.cpp | 441 if (VD->getDeclContext()->isDependentContext()) in CanElideDeclDef() 531 DeclBits.addBit(D->getDeclContext() != D->getLexicalDeclContext()); in VisitDecl() 537 Record.AddDeclRef(cast_or_null<Decl>(D->getDeclContext())); in VisitDecl() 538 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl() 555 auto *DC = D->getDeclContext(); in VisitDecl() 619 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl() 698 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitEnumDecl() 740 if (D->getDeclContext() == D->getLexicalDeclContext() && !D->hasAttrs() && in VisitRecordDecl() 1085 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl() 1218 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | CallDescription.cpp | 99 const DeclContext *Ctx = FindNextNamespaceOrRecord(D->getDeclContext()); in matchQualifiedNameParts()
|
| H A D | CheckerContext.cpp | 93 const DeclContext *DC = FD->getDeclContext()->getRedeclContext(); in isCLibraryFunction()
|