| /freebsd-13.1/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexDecl.cpp | 101 auto *DC = Parm->getDeclContext(); in handleDeclarator() 172 D->getDeclContext(), 0); in handleObjCMethod() 258 Ctor->getParent(), Ctor->getDeclContext(), in VisitFunctionDecl() 281 Guide->getDeclContext()); in VisitFunctionDecl() 525 auto *Container = cast<ObjCImplDecl>(D->getDeclContext()); in VisitObjCPropertyImplDecl() 571 D->getDeclContext(), SymbolRoleSet()); in VisitObjCPropertyImplDecl() 594 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUsingDecl() 605 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUsingDirectiveDecl() 622 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUnresolvedUsingValueDecl() 631 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUnresolvedUsingTypenameDecl() [all …]
|
| H A 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() 481 Visit(cast<Decl>(D->getDeclContext())); in VisitObjCPropertyDecl() 504 VisitDeclContext(D->getDeclContext()); in VisitTagDecl() 994 VisitDeclContext(D->getDeclContext()); in VisitUnresolvedUsingValueDecl() [all …]
|
| H A 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()
|
| 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()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/ |
| H A 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()
|
| H A D | DeclBase.cpp | 287 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod() 336 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext() 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() 1512 auto *DC = D->getDeclContext(); in removeDecl() 1554 ND->getDeclContext()->getPrimaryContext()-> in addDecl() 1562 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal() [all …]
|
| H A D | DeclObjC.cpp | 850 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface() 920 auto *CtxD = cast<Decl>(getDeclContext()); 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() 1173 if (auto *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) in getCategory() 1197 .substObjCMemberType(receiverType, getDeclContext(), in getSendResultType() 1314 Method = cast<ObjCContainerDecl>(Method->getDeclContext()) in getOverriddenMethods() [all …]
|
| H A D | Decl.cpp | 304 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext() 717 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl() 1443 if (D->getDeclContext()->isRecord()) in computeLVForDecl() 1457 if (D->getDeclContext()->isFunctionOrMethod()) in computeLVForDecl() 1579 if (getDeclContext()->isFunctionOrMethod()) { in printQualifiedName() 1606 const DeclContext *Ctx = getDeclContext(); in printNestedNameSpecifier() 2084 const DeclContext *DC = D.getDeclContext(); in getDeclLanguageLinkage() 2100 const DeclContext *DC = D.getDeclContext(); in isDeclExternC() 2750 if (isa<ObjCMethodDecl>(getDeclContext())) in getSourceRange() 3096 if (isa<CXXRecordDecl>(getDeclContext())) in isReplaceableGlobalAllocationFunction() [all …]
|
| H A 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()
|
| H A D | TemplateName.cpp | 202 if (Template->getDeclContext() && in getDependence() 203 Template->getDeclContext()->isDependentContext()) in getDependence()
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaAccess.cpp | 66 DeclContext *DC = D->getDeclContext(); in FindDeclaringClass() 71 DC = cast<EnumDecl>(DC)->getDeclContext(); in FindDeclaringClass() 123 DC = Record->getDeclContext(); in EffectiveContext() 130 DC = Function->getDeclContext(); in EffectiveContext() 381 Context->getDeclContext(), in MightInstantiateTo() 382 Friend->getDeclContext())) in MightInstantiateTo() 491 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend() 492 Friend->getDeclContext())) in MatchesFriend() 1136 if (D->getDeclContext() == DeclaringClass) in diagnoseBadDirectAccess() 1139 DeclContext *DC = D->getDeclContext(); in diagnoseBadDirectAccess() [all …]
|
| H A 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()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 36 const DeclContext *DC = D->getDeclContext(); in isDeclWithinFunction() 816 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) && in getPreviousDeclForInstantiation() 1809 } else if (InstTemplate->getDeclContext()->isRecord() && in VisitFunctionTemplateDecl() 2071 assert(D->getDeclContext()->isFileContext()); in VisitFunctionDecl() 2072 LexicalDC = D->getDeclContext(); in VisitFunctionDecl() 3605 assert(ClassTemplate->getDeclContext()->isRecord() && in VisitClassTemplateSpecializationDecl() 5218 OldVar->getPreviousDecl()->getDeclContext()==OldVar->getDeclContext())) { in BuildVariableInstantiation() 5239 if (NewVar->getDeclContext()->isFunctionOrMethod()) in BuildVariableInstantiation() 5287 NewVar->getDeclContext()->isFunctionOrMethod() && in BuildVariableInstantiation() 5987 DeclContext *ParentDC = D->getDeclContext(); in FindInstantiatedDecl() [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() 2105 if (Dcl->getDeclContext()->isFileContext()) in ActOnFinishObjCImplementation() 3308 dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) in addMethodToGlobalList() 3422 if (cast<Decl>(Method->getDeclContext())->isInvalidDecl()) in AddMethodToGlobalPool() [all …]
|
| H A D | SemaDecl.cpp | 100 RD = cast<CXXRecordDecl>(RD->getDeclContext()); in ValidateCandidate() 1668 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage() 2197 CurContext = New->getDeclContext(); in LazilyCreateBuiltin() 3154 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages() 5058 DeclContext *Owner = Record->getDeclContext(); in BuildAnonymousStructOrUnion() 6810 DeclContext *DC = NewVD->getDeclContext(); in diagnoseOpenCLTypes() 7650 if (D->getDeclContext()->isRecord()) in getShadowedDeclaration() 7683 DeclContext *NewDC = D->getDeclContext(); in CheckShadow() 8357 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration() 13475 const DeclContext *DC = VD->getDeclContext(); in FinalizeDeclaration() [all …]
|
| H A D | SemaTemplate.cpp | 122 Record = cast<CXXRecordDecl>(Record->getDeclContext()); in getAsTemplateNameDecl() 831 << Instantiation->getDeclContext(); in DiagnoseUninstantiableTemplate() 862 << Instantiation->getDeclContext(); in DiagnoseUninstantiableTemplate() 1836 SemanticContext = PrevDecl->getDeclContext(); in CheckClassTemplate() 2140 DeclContext *DC = Template->getDeclContext(); 2472 DeclContext *DC = Template->getDeclContext(); in DeclareImplicitDeductionGuides() 3815 ClassTemplate->getDeclContext(), in CheckTemplateIdType() 4176 if (Partial->getDeclContext()->isDependentContext()) in checkMoreSpecializedThanPrimary() 6164 if (Tag->getDeclContext()->isFunctionOrMethod()) { in VisitTagDecl() 7514 assert(VD->getDeclContext()->isRecord() && in BuildExpressionFromDeclTemplateArgument() [all …]
|
| H A 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-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A 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-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/ |
| H A D | Lookup.cpp | 203 isa<TranslationUnitDecl>(FromDecl->getDeclContext()); in replaceNestedName() 208 !usingFromDifferentCanonicalNamespace(FromDecl->getDeclContext(), in replaceNestedName()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | TransGCCalls.cpp | 48 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
|
| H A D | TransGCAttrs.cpp | 141 return isMigratable(cast<Decl>(D->getDeclContext())); in isMigratable() 263 cast<Decl>(IndProps.front()->getDeclContext()))) { in checkAllAtProps()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A 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() 1647 if (isa<FunctionDecl>(RD->getDeclContext())) in isFunctionLocalClass() 3579 if (VD->getDeclContext() && !isa<FunctionDecl>(VD->getDeclContext()) && in collectVarDeclProps() 3580 !isa<ObjCMethodDecl>(VD->getDeclContext())) in collectVarDeclProps() 4713 auto DC = D->getDeclContext(); in getOrCreateStaticDataMemberDeclarationOrNull() 4844 if (isa<RecordDecl>(ED->getDeclContext())) in EmitGlobalVariable() 4859 if (isa<FunctionDecl>(VD->getDeclContext())) in EmitGlobalVariable() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerContext.cpp | 70 if (!FD->getDeclContext()->getRedeclContext()->isTranslationUnit()) in isCLibraryFunction()
|