| /freebsd-12-stable/contrib/llvm-project/clang/lib/Index/ |
| D | IndexDecl.cpp | 101 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 …]
|
| D | USRGeneration.cpp | 116 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 …]
|
| D | IndexingContext.cpp | 63 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()
|
| 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()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/AST/ |
| D | ASTImporterLookupTable.cpp | 104 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add() 113 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove() 121 assert(OldDC != ND->getDeclContext() && in update() 123 if (contains(ND->getDeclContext(), ND)) { in update()
|
| D | DeclBase.cpp | 260 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() 979 isa<NonTypeTemplateParmDecl>(this) || !getDeclContext() || in AccessDeclContextSanity() 980 !isa<CXXRecordDecl>(getDeclContext()) || isInvalidDecl() || in AccessDeclContextSanity() [all …]
|
| D | DeclObjC.cpp | 839 if (const auto *PD = dyn_cast<const ObjCProtocolDecl>(getDeclContext())) in definedInNSObject() 841 if (const auto *ID = dyn_cast<const ObjCInterfaceDecl>(getDeclContext())) in definedInNSObject() 850 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface() 920 auto *CtxD = cast<Decl>(getDeclContext()); in getNextRedeclarationImpl() 948 if (Redecl && cast<Decl>(Redecl->getDeclContext())->isInvalidDecl()) in getNextRedeclarationImpl() 962 auto *CtxD = cast<Decl>(getDeclContext()); in getCanonicalDecl() 1161 if (auto *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) in getClassInterface() 1163 if (auto *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) in getClassInterface() 1165 if (auto *IMD = dyn_cast<ObjCImplDecl>(getDeclContext())) in getClassInterface() 1167 if (isa<ObjCProtocolDecl>(getDeclContext())) in getClassInterface() [all …]
|
| D | Decl.cpp | 100 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() 1095 const DeclContext *DC = getDeclContext()->getRedeclContext(); in isReserved() 1221 dyn_cast<NamedDecl>(ContextDecl->getDeclContext()->getRedeclContext()); in getLVForClosure() 1311 LV = getLVForClosure(BD->getDeclContext()->getRedeclContext(), in getLVForLocalDecl() [all …]
|
| D | QualTypeNames.cpp | 189 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()
|
| D | TemplateName.cpp | 202 if (Template->getDeclContext() && in getDependence() 203 Template->getDeclContext()->isDependentContext()) in getDependence()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| D | ObjCPropertyChecker.cpp | 58 dyn_cast<ObjCInterfaceDecl>(D->getDeclContext())) { in checkCopyMutable() 60 } else if (auto *CatD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext())) { in checkCopyMutable()
|
| D | LLVMConventionsChecker.cpp | 40 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace() 46 return isa<TranslationUnitDecl>(ND->getDeclContext()); in InNamespace()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/ |
| 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 …]
|
| D | IdentifierResolver.cpp | 138 DeclContext *DCtx = D->getDeclContext()->getRedeclContext(); in isDeclInScope() 335 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl() 365 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
|
| D | SemaTemplateInstantiateDecl.cpp | 36 const DeclContext *DC = D->getDeclContext(); in isDeclWithinFunction() 297 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext()); in instantiateOMPDeclareSimdDeclAttr() 380 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(FD->getDeclContext()); in instantiateOMPDeclareVariantAttr() 619 *this, dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()), in InstantiateAttrsForDecl() 773 auto *ThisContext = dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateAttrs() 816 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) && in getPreviousDeclForInstantiation() 901 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext()); in InstantiateTypedefNameDecl() 1201 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) { in VisitFieldDecl() 1481 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition() 1552 Pattern->getDeclContext(), in VisitClassTemplateDecl() [all …]
|
| 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 …]
|
| D | SemaDecl.cpp | 100 RD = cast<CXXRecordDecl>(RD->getDeclContext()); in ValidateCandidate() 1668 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage() 1696 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl() 1796 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl() 1797 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl() 2197 CurContext = New->getDeclContext(); in LazilyCreateBuiltin() 3048 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes() 3154 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages() 3195 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl() 3196 New->getDeclContext()->getRedeclContext()) && in checkUsingShadowRedecl() [all …]
|
| D | SemaTemplate.cpp | 122 Record = cast<CXXRecordDecl>(Record->getDeclContext()); in getAsTemplateNameDecl() 831 << Instantiation->getDeclContext(); in DiagnoseUninstantiableTemplate() 862 << Instantiation->getDeclContext(); in DiagnoseUninstantiableTemplate() 1812 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext()); in CheckClassTemplate() 1834 (OutermostContext->Equals(PrevDecl->getDeclContext()) || in CheckClassTemplate() 1835 OutermostContext->Encloses(PrevDecl->getDeclContext()))) { in CheckClassTemplate() 1836 SemanticContext = PrevDecl->getDeclContext(); in CheckClassTemplate() 1868 PrevClassTemplate->getDeclContext()->getRedeclContext()->Equals( in CheckClassTemplate() 2019 if (!Invalid && TUK != TUK_Friend && NewTemplate->getDeclContext()->isRecord()) in CheckClassTemplate() 2104 if (OrigDecl->getDeclContext()->isDependentContext()) { in TransformTypedefType() [all …]
|
| D | SemaObjCProperty.cpp | 392 auto *OldDC = OldProperty->getDeclContext(); in checkAtomicPropertyMismatch() 442 if (PIDecl && isa<ObjCCategoryDecl>(PIDecl->getDeclContext())) { in HandlePropertyInClassExtension() 841 assert(isa<ObjCProtocolDecl>(Property->getDeclContext()) && in SelectPropertyForSynthesisFromProtocols() 1026 auto Category = dyn_cast<ObjCCategoryDecl>(Prop->getDeclContext()); in hasWrittenStorageAttribute() 1131 dyn_cast<ObjCCategoryDecl>(property->getDeclContext())) { in ActOnPropertyImplDecl() 1169 if (Synthesize && isa<ObjCProtocolDecl>(property->getDeclContext())) in ActOnPropertyImplDecl() 1678 isa<ObjCProtocolDecl>(SuperProperty->getDeclContext()))) { in DiagnosePropertyMismatch() 1930 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) { in DefaultSynthesizeProperties() 2289 if (getterRedecl->getDeclContext() != PD->getDeclContext()) in DiagnoseOwningPropertyGetterSynthesis() 2380 ObjCContainerDecl *CD = cast<ObjCContainerDecl>(property->getDeclContext()); in ProcessPropertyDecl()
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| D | CxxModuleHandler.cpp | 191 if (!td->getDeclContext()->isStdNamespace()) in tryInstantiateStdTemplate() 207 getEqualLocalDeclContext(*m_sema, td->getDeclContext()); in tryInstantiateStdTemplate() 277 new_class_template->getDeclContext(), in tryInstantiateStdTemplate()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/ |
| D | Lookup.cpp | 203 isa<TranslationUnitDecl>(FromDecl->getDeclContext()); in replaceNestedName() 208 !usingFromDifferentCanonicalNamespace(FromDecl->getDeclContext(), in replaceNestedName()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/ARCMigrate/ |
| D | TransGCCalls.cpp | 48 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
|
| D | TransGCAttrs.cpp | 141 return isMigratable(cast<Decl>(D->getDeclContext())); in isMigratable() 263 cast<Decl>(IndProps.front()->getDeclContext()))) { in checkAllAtProps()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/ |
| D | CGDebugInfo.cpp | 203 return getContextDescriptor(cast<Decl>(D->getDeclContext()), in getDeclContextDescriptor() 259 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName() 299 assert(RD->getDeclContext() == D->getDeclContext() && in getClassName() 1567 nestedType->getDeclContext() == record) in CollectRecordFields() 1645 if (const auto *NRD = dyn_cast<CXXRecordDecl>(RD->getDeclContext())) in isFunctionLocalClass() 1647 if (isa<FunctionDecl>(RD->getDeclContext())) in isFunctionLocalClass() 3541 dyn_cast_or_null<NamespaceDecl>(FD->getDeclContext())) in collectFunctionDeclProps() 3544 dyn_cast_or_null<RecordDecl>(FD->getDeclContext())) { in collectFunctionDeclProps() 3579 if (VD->getDeclContext() && !isa<FunctionDecl>(VD->getDeclContext()) && in collectVarDeclProps() 3580 !isa<ObjCMethodDecl>(VD->getDeclContext())) in collectVarDeclProps() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| D | CheckerContext.cpp | 70 if (!FD->getDeclContext()->getRedeclContext()->isTranslationUnit()) in isCLibraryFunction()
|