Home
last modified time | relevance | path

Searched refs:getDeclContext (Results 1 – 25 of 130) sorted by relevance

123456

/freebsd-13.1/contrib/llvm-project/clang/lib/Index/
H A DIndexDecl.cpp101 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 DUSRGeneration.cpp116 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 DIndexingContext.cpp63 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 DIndexSymbol.cpp96 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 DASTImporterLookupTable.cpp104 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 DDeclBase.cpp287 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 DDeclObjC.cpp850 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 DDecl.cpp304 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 DQualTypeNames.cpp189 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 DTemplateName.cpp202 if (Template->getDeclContext() && in getDependence()
203 Template->getDeclContext()->isDependentContext()) in getDependence()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DObjCPropertyChecker.cpp58 dyn_cast<ObjCInterfaceDecl>(D->getDeclContext())) { in checkCopyMutable()
60 } else if (auto *CatD = dyn_cast<ObjCCategoryDecl>(D->getDeclContext())) { in checkCopyMutable()
H A DLLVMConventionsChecker.cpp40 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 DSemaAccess.cpp66 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 DIdentifierResolver.cpp138 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 DSemaTemplateInstantiateDecl.cpp36 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 DSemaDeclObjC.cpp67 !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 DSemaDecl.cpp100 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 DSemaTemplate.cpp122 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 DSemaObjCProperty.cpp392 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 DCxxModuleHandler.cpp191 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 DLookup.cpp203 isa<TranslationUnitDecl>(FromDecl->getDeclContext()); in replaceNestedName()
208 !usingFromDifferentCanonicalNamespace(FromDecl->getDeclContext(), in replaceNestedName()
/freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransGCCalls.cpp48 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
H A DTransGCAttrs.cpp141 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 DCGDebugInfo.cpp203 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 DCheckerContext.cpp70 if (!FD->getDeclContext()->getRedeclContext()->isTranslationUnit()) in isCLibraryFunction()

123456