| /freebsd-12.1/contrib/llvm/tools/clang/lib/Index/ |
| H A D | IndexDecl.cpp | 95 auto *DC = Parm->getDeclContext(); in handleDeclarator() 165 D->getDeclContext(), 0); in handleObjCMethod() 251 Ctor->getParent(), Ctor->getDeclContext()); in VisitFunctionDecl() 272 Guide->getDeclContext()); in VisitFunctionDecl() 515 auto *Container = cast<ObjCImplDecl>(D->getDeclContext()); in VisitObjCPropertyImplDecl() 563 D->getDeclContext(), SymbolRoleSet()); in VisitObjCPropertyImplDecl() 584 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUsingDecl() 596 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUsingDirectiveDecl() 613 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUnresolvedUsingValueDecl() 622 const DeclContext *DC = D->getDeclContext()->getRedeclContext(); in VisitUnresolvedUsingTypenameDecl() [all …]
|
| H A D | USRGeneration.cpp | 206 VisitDeclContext(D->getDeclContext()); in VisitFieldDecl() 220 VisitDeclContext(D->getDeclContext()); in VisitFunctionDecl() 285 VisitDeclContext(D->getDeclContext()); in VisitNamedDecl() 304 VisitDeclContext(D->getDeclContext()); in VisitVarDecl() 361 VisitDeclContext(D->getDeclContext()); in VisitNamespaceDecl() 375 VisitDeclContext(D->getDeclContext()); in VisitNamespaceAliasDecl() 475 Visit(cast<Decl>(D->getDeclContext())); in VisitObjCPropertyDecl() 498 VisitDeclContext(D->getDeclContext()); in VisitTagDecl() 578 const DeclContext *DC = D->getDeclContext(); in VisitTypedefDecl() 979 VisitDeclContext(D->getDeclContext()); in VisitUnresolvedUsingValueDecl() [all …]
|
| H A D | IndexingContext.cpp | 55 DC = D->getDeclContext(); in handleDecl() 157 if (const auto *Parent = dyn_cast<Decl>(D->getDeclContext())) in isTemplateImplicitInstantiation() 189 dyn_cast<ClassTemplateSpecializationDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern() 191 else if (const auto *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in getDeclContextForTemplateInstationPattern() 220 if (const auto *ED = dyn_cast<EnumDecl>(ECD->getDeclContext())) { in adjustTemplateImplicitInstantiation() 263 for (;; Parent = cast<Decl>(Parent->getDeclContext())) { in adjustParent()
|
| H A D | IndexSymbol.cpp | 99 if (isa<ObjCProtocolDecl>(D->getDeclContext())) { in getSymbolInfo() 144 } else if (isa<CXXRecordDecl>(D->getDeclContext())) { in getSymbolInfo() 177 CXXRec = dyn_cast<CXXRecordDecl>(D->getDeclContext())) { in getSymbolInfo()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ObjCPropertyChecker.cpp | 59 dyn_cast<ObjCInterfaceDecl>(D->getDeclContext())) { in checkCopyMutable() 61 } else if (auto *CatD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext())) { in checkCopyMutable()
|
| H A D | LLVMConventionsChecker.cpp | 41 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace() 47 return isa<TranslationUnitDecl>(ND->getDeclContext()); in InNamespace()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 844 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface() 914 auto *CtxD = cast<Decl>(getDeclContext()); in getNextRedeclarationImpl() 955 auto *CtxD = cast<Decl>(getDeclContext()); in getCanonicalDecl() 1145 if (auto *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) in getClassInterface() 1147 if (auto *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) in getClassInterface() 1149 if (auto *IMD = dyn_cast<ObjCImplDecl>(getDeclContext())) in getClassInterface() 1151 if (isa<ObjCProtocolDecl>(getDeclContext())) in getClassInterface() 1173 .substObjCMemberType(receiverType, getDeclContext(), in getSendResultType() 1249 dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow() 1290 Method = cast<ObjCContainerDecl>(Method->getDeclContext())-> in getOverriddenMethods() [all …]
|
| H A D | DeclBase.cpp | 255 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod() 304 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext() 358 return getDeclContext()->isStdNamespace(); in isInStdNamespace() 365 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl() 464 if (auto *dcd = dyn_cast<Decl>(getDeclContext())) { in getExternalSourceSymbolAttr() 935 !isa<CXXRecordDecl>(getDeclContext()) || in AccessDeclContextSanity() 1466 auto *DC = D->getDeclContext(); in removeDecl() 1511 ND->getDeclContext()->getPrimaryContext()-> in addDecl() 1519 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal() 1577 if (ND->getDeclContext() == DCtx && !shouldBeHidden(ND) && in buildLookupImpl() [all …]
|
| H A D | Decl.cpp | 304 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext() 704 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl() 1405 if (D->getDeclContext()->isRecord()) in computeLVForDecl() 1419 if (D->getDeclContext()->isFunctionOrMethod()) in computeLVForDecl() 1533 const DeclContext *Ctx = getDeclContext(); in printQualifiedName() 1669 OldD->getDeclContext()->getRedeclContext())) in declarationReplaces() 1985 const DeclContext *DC = D.getDeclContext(); in getDeclLanguageLinkage() 2001 const DeclContext *DC = D.getDeclContext(); in isDeclExternC() 2567 if (isa<ObjCMethodDecl>(getDeclContext())) in getSourceRange() 2827 if (isa<CXXRecordDecl>(getDeclContext())) in isReplaceableGlobalAllocationFunction() [all …]
|
| H A D | QualTypeNames.cpp | 192 const DeclContext *DC = D->getDeclContext(); in createOuterNNS() 196 NS = dyn_cast<NamespaceDecl>(NS->getDeclContext()); in createOuterNNS() 272 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext(); in createNestedNameSpecifierForScopeOf() 347 Namespace = dyn_cast<NamespaceDecl>(Namespace->getDeclContext()); in createNestedNameSpecifier()
|
| H A D | ASTImporterLookupTable.cpp | 74 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add() 83 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove()
|
| H A D | TemplateName.cpp | 168 return Template->getDeclContext() && in isDependent() 169 Template->getDeclContext()->isDependentContext(); in isDependent()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/ |
| H A D | SemaAccess.cpp | 67 DeclContext *DC = D->getDeclContext(); in FindDeclaringClass() 72 DC = cast<EnumDecl>(DC)->getDeclContext(); in FindDeclaringClass() 110 DC = Record->getDeclContext(); in EffectiveContext() 117 DC = Function->getDeclContext(); in EffectiveContext() 369 Context->getDeclContext(), in MightInstantiateTo() 370 Friend->getDeclContext())) in MightInstantiateTo() 479 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend() 480 Friend->getDeclContext())) in MatchesFriend() 1124 if (D->getDeclContext() == DeclaringClass) in diagnoseBadDirectAccess() 1127 DeclContext *DC = D->getDeclContext(); in diagnoseBadDirectAccess() [all …]
|
| H A D | IdentifierResolver.cpp | 139 DeclContext *DCtx = D->getDeclContext()->getRedeclContext(); in isDeclInScope() 336 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl() 366 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 31 const DeclContext *DC = D->getDeclContext(); in isDeclWithinFunction() 499 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) && in getPreviousDeclForInstantiation() 1487 } else if (InstTemplate->getDeclContext()->isRecord() && in VisitFunctionTemplateDecl() 1697 assert(D->getDeclContext()->isFileContext()); in VisitFunctionDecl() 1698 LexicalDC = D->getDeclContext(); in VisitFunctionDecl() 2959 assert(ClassTemplate->getDeclContext()->isRecord() && in VisitClassTemplateSpecializationDecl() 4207 OldVar->getPreviousDecl()->getDeclContext()==OldVar->getDeclContext())) { in BuildVariableInstantiation() 4225 if (NewVar->getDeclContext()->isFunctionOrMethod()) in BuildVariableInstantiation() 4252 NewVar->getDeclContext()->isFunctionOrMethod() && in BuildVariableInstantiation() 4986 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() 442 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext()); in ActOnStartOfObjCMethodDef() 444 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext()); in ActOnStartOfObjCMethodDef() 2086 if (Dcl->getDeclContext()->isFileContext()) in ActOnFinishObjCImplementation() 3274 dyn_cast<ObjCCategoryDecl>(Method->getDeclContext())) in addMethodToGlobalList() 3388 if (cast<Decl>(Method->getDeclContext())->isInvalidDecl()) in AddMethodToGlobalPool() [all …]
|
| H A D | SemaDecl.cpp | 98 RD = cast<CXXRecordDecl>(RD->getDeclContext()); in ValidateCandidate() 1535 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage() 1563 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl() 2866 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages() 4303 Record->getDeclContext()->isRecord()) { in ParsedFreeStandingDeclSpec() 4627 DeclContext *Owner = Record->getDeclContext(); in BuildAnonymousStructOrUnion() 6992 if (D->getDeclContext()->isRecord()) in getShadowedDeclaration() 7013 DeclContext *NewDC = D->getDeclContext(); in CheckShadow() 7714 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration() 12141 const DeclContext *DC = VD->getDeclContext(); in FinalizeDeclaration() [all …]
|
| H A D | SemaObjCProperty.cpp | 400 auto *OldDC = OldProperty->getDeclContext(); in checkAtomicPropertyMismatch() 449 if (PIDecl && isa<ObjCCategoryDecl>(PIDecl->getDeclContext())) { in HandlePropertyInClassExtension() 837 assert(isa<ObjCProtocolDecl>(Property->getDeclContext()) && in SelectPropertyForSynthesisFromProtocols() 1021 auto Category = dyn_cast<ObjCCategoryDecl>(Prop->getDeclContext()); in hasWrittenStorageAttribute() 1099 dyn_cast<ObjCCategoryDecl>(property->getDeclContext())) { in ActOnPropertyImplDecl() 1140 if (Synthesize && isa<ObjCProtocolDecl>(property->getDeclContext())) in ActOnPropertyImplDecl() 1624 isa<ObjCProtocolDecl>(SuperProperty->getDeclContext()))) { in DiagnosePropertyMismatch() 1874 dyn_cast<ObjCProtocolDecl>(Prop->getDeclContext())) { in DefaultSynthesizeProperties() 2235 if (getterRedecl->getDeclContext() != PD->getDeclContext()) in DiagnoseOwningPropertyGetterSynthesis() 2317 ObjCContainerDecl *CD = cast<ObjCContainerDecl>(property->getDeclContext()); in ProcessPropertyDecl()
|
| H A D | SemaTemplate.cpp | 96 Record = cast<CXXRecordDecl>(Record->getDeclContext()); in isAcceptableTemplateName() 706 << Instantiation->getDeclContext(); in DiagnoseUninstantiableTemplate() 737 << Instantiation->getDeclContext(); in DiagnoseUninstantiableTemplate() 1387 SemanticContext = PrevDecl->getDeclContext(); in CheckClassTemplate() 1692 DeclContext *DC = Template->getDeclContext(); 1984 DeclContext *DC = Template->getDeclContext(); in DeclareImplicitDeductionGuides() 3295 ClassTemplate->getDeclContext(), in CheckTemplateIdType() 3606 if (Partial->getDeclContext()->isDependentContext()) in checkMoreSpecializedThanPrimary() 5510 if (Tag->getDeclContext()->isFunctionOrMethod()) { in VisitTagDecl() 6772 if (VD->getDeclContext()->isRecord() && in BuildExpressionFromDeclTemplateArgument() [all …]
|
| H A D | SemaTemplateInstantiate.cpp | 67 Ctx = D->getDeclContext(); in getTemplateInstantiationArgs() 163 Function->getDeclContext()->isFileContext() && in getTemplateInstantiationArgs() 569 FunctionDecl *FD = cast<FunctionDecl>(Param->getDeclContext()); in PrintInstantiationStack() 938 DeclContext *Owner = OrigTPL->getParam(0)->getDeclContext(); in TransformTemplateParameterList() 1418 assert(!cast<FunctionDecl>(E->getParam()->getDeclContext())-> in TransformCXXDefaultArgExpr() 1422 cast<FunctionDecl>(E->getParam()->getDeclContext()), in TransformCXXDefaultArgExpr() 1796 FunctionDecl *OwningFunc = cast<FunctionDecl>(OldParm->getDeclContext()); in SubstParmVarDecl() 2083 if (Member->getDeclContext() != Pattern) in InstantiateClass() 2150 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateClass() 2886 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(PV->getDeclContext())) { in getCanonicalParmVarDecl()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Core/ |
| H A D | Lookup.cpp | 166 isa<TranslationUnitDecl>(FromDecl->getDeclContext()); in replaceNestedName() 171 !usingFromDifferentCanonicalNamespace(FromDecl->getDeclContext(), in replaceNestedName()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/ |
| H A D | TransGCCalls.cpp | 49 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
|
| H A D | TransGCAttrs.cpp | 139 return isMigratable(cast<Decl>(D->getDeclContext())); in isMigratable() 262 cast<Decl>(IndProps.front()->getDeclContext()))) { in checkAllAtProps()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | CGDebugInfo.cpp | 201 return getContextDescriptor(cast<Decl>(D->getDeclContext()), in getDeclContextDescriptor() 282 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName() 333 assert(RD->getDeclContext() == D->getDeclContext() && in getClassName() 1418 nestedType->getDeclContext() == record) in CollectRecordFields() 1493 if (isa<FunctionDecl>(RD->getDeclContext())) in isFunctionLocalClass() 3155 if (VD->getDeclContext() && !isa<FunctionDecl>(VD->getDeclContext()) && in collectVarDeclProps() 3156 !isa<ObjCMethodDecl>(VD->getDeclContext())) in collectVarDeclProps() 4131 auto DC = D->getDeclContext(); in getOrCreateStaticDataMemberDeclarationOrNull() 4225 const auto *ED = cast<EnumDecl>(ECD->getDeclContext()); in EmitGlobalVariable() 4235 if (isa<FunctionDecl>(VD->getDeclContext())) in EmitGlobalVariable() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerContext.cpp | 67 if (!FD->getDeclContext()->getRedeclContext()->isTranslationUnit()) in isCLibraryFunction()
|