Home
last modified time | relevance | path

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

1234

/external/clang/lib/Index/
DUSRGeneration.cpp185 VisitDeclContext(D->getDeclContext()); in VisitFieldDecl()
198 VisitDeclContext(D->getDeclContext()); in VisitFunctionDecl()
253 VisitDeclContext(D->getDeclContext()); in VisitNamedDecl()
272 VisitDeclContext(D->getDeclContext()); in VisitVarDecl()
305 VisitDeclContext(D->getDeclContext()); in VisitNamespaceDecl()
319 VisitDeclContext(D->getDeclContext()); in VisitNamespaceAliasDecl()
325 const DeclContext *container = D->getDeclContext(); in VisitObjCMethodDecl()
402 Visit(cast<Decl>(D->getDeclContext())); in VisitObjCPropertyDecl()
422 VisitDeclContext(D->getDeclContext()); in VisitTagDecl()
494 const DeclContext *DC = D->getDeclContext(); in VisitTypedefDecl()
/external/clang/lib/AST/
DDecl.cpp44 return !getLexicalDeclContext()->Equals(getDeclContext()); in isOutOfLine()
301 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext()
571 if (const auto *SD = dyn_cast<LinkageSpecDecl>(D.getDeclContext())) in isSingleLineLanguageLinkage()
579 assert(D->getDeclContext()->getRedeclContext()->isFileContext() && in getLVForNamespaceScopeDecl()
659 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl()
802 LinkageInfo EnumLV = getLVForDecl(cast<NamedDecl>(D->getDeclContext()), in getLVForNamespaceScopeDecl()
888 getLVForDecl(cast<RecordDecl>(D->getDeclContext()), classComputation); in getLVForClassMember()
1119 DC = ContextDecl->getDeclContext()->getRedeclContext(); in getLVForClosure()
1195 LV = getLVForClosure(BD->getDeclContext()->getRedeclContext(), in getLVForLocalDecl()
1253 return getLVForDecl(cast<EnumDecl>(D->getDeclContext()), computation); in computeLVForDecl()
[all …]
DDeclObjC.cpp748 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface()
815 Decl *CtxD = cast<Decl>(getDeclContext()); in getNextRedeclarationImpl()
852 Decl *CtxD = cast<Decl>(getDeclContext()); in getCanonicalDecl()
1040 if (ObjCInterfaceDecl *ID = dyn_cast<ObjCInterfaceDecl>(getDeclContext())) in getClassInterface()
1042 if (ObjCCategoryDecl *CD = dyn_cast<ObjCCategoryDecl>(getDeclContext())) in getClassInterface()
1044 if (ObjCImplDecl *IMD = dyn_cast<ObjCImplDecl>(getDeclContext())) in getClassInterface()
1046 if (isa<ObjCProtocolDecl>(getDeclContext())) in getClassInterface()
1068 .substObjCMemberType(receiverType, getDeclContext(), in getSendResultType()
1146 ProtD = dyn_cast<ObjCProtocolDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow()
1150 IMD = dyn_cast<ObjCImplDecl>(Method->getDeclContext())) { in collectOverriddenMethodsSlow()
[all …]
DDeclBase.cpp200 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod()
250 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext()
282 const DeclContext *DC = getDeclContext(); in isInAnonymousNamespace()
293 return getDeclContext()->isStdNamespace(); in isInStdNamespace()
300 DeclContext *DC = getDeclContext(); in getTranslationUnitDecl()
749 !isa<CXXRecordDecl>(getDeclContext()) || in AccessDeclContextSanity()
1256 ND->getDeclContext()->getPrimaryContext()-> in addDecl()
1264 ND->getDeclContext()->getPrimaryContext()-> in addDeclInternal()
1345 if (ND->getDeclContext() == DCtx && !shouldBeHidden(ND) && in buildLookupImpl()
1537 DeclContext *DeclDC = D->getDeclContext()->getPrimaryContext(); in makeDeclVisibleInContext()
[all …]
DTemplateName.cpp92 return Template->getDeclContext() && in isDependent()
93 Template->getDeclContext()->isDependentContext(); in isDependent()
DTemplateBase.cpp118 return getAsDecl()->getDeclContext()->isDependentContext(); in isDependent()
158 return getAsDecl()->getDeclContext()->isDependentContext(); in isInstantiationDependent()
/external/clang/lib/Tooling/Core/
DLookup.cpp99 isa<TranslationUnitDecl>(FromDecl->getDeclContext()); in replaceNestedName()
101 !isInsideDifferentNamespaceWithSameName(FromDecl->getDeclContext(), in replaceNestedName()
/external/clang/lib/Sema/
DSemaAccess.cpp66 DeclContext *DC = D->getDeclContext(); in FindDeclaringClass()
71 DC = cast<EnumDecl>(DC)->getDeclContext(); in FindDeclaringClass()
75 DeclaringClass = cast<CXXRecordDecl>(DeclaringClass->getDeclContext()); in FindDeclaringClass()
109 DC = Record->getDeclContext(); in EffectiveContext()
116 DC = Function->getDeclContext(); in EffectiveContext()
265 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
266 const DeclContext *ToDC = To->getDeclContext()->getPrimaryContext(); in MightInstantiateTo()
367 Context->getDeclContext(), in MightInstantiateTo()
368 Friend->getDeclContext())) in MightInstantiateTo()
483 if (!MightInstantiateTo(S, CTD->getDeclContext(), in MatchesFriend()
[all …]
DSemaTemplateInstantiateDecl.cpp29 const DeclContext *DC = D->getDeclContext(); in isDeclWithinFunction()
288 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateAttrs()
311 if (Result && isa<CXXRecordDecl>(D->getDeclContext()) && in getPreviousDeclForInstantiation()
376 CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D->getDeclContext()); in InstantiateTypedefNameDecl()
624 if (CXXRecordDecl *Parent= dyn_cast<CXXRecordDecl>(Field->getDeclContext())) { in VisitFieldDecl()
905 if (Pattern->getDeclContext()->isFunctionOrMethod() && in InstantiateEnumDefinition()
979 Pattern->getDeclContext(), in VisitClassTemplateDecl()
1261 } else if (InstTemplate->getDeclContext()->isRecord() && in VisitFunctionTemplateDecl()
1432 DC = SemaRef.FindInstantiatedContext(D->getLocation(), D->getDeclContext(), in VisitFunctionDecl()
1455 assert(D->getDeclContext()->isFileContext()); in VisitFunctionDecl()
[all …]
DIdentifierResolver.cpp136 DeclContext *DCtx = D->getDeclContext()->getRedeclContext(); in isDeclInScope()
331 if (!PrevD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
361 if (!(*I)->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in tryAddTopLevelDecl()
DSemaDeclObjC.cpp68 !isa<ObjCImplementationDecl>(method->getDeclContext())) in checkInitMethod()
76 if (isa<ObjCProtocolDecl>(method->getDeclContext())) { in checkInitMethod()
126 = dyn_cast<ObjCInterfaceDecl>(NewMethod->getDeclContext()); in CheckObjCMethodOverride()
128 DeclContext *DC = NewMethod->getDeclContext(); in CheckObjCMethodOverride()
372 dyn_cast<ObjCImplDecl>(MDecl->getDeclContext()); in ActOnStartOfObjCMethodDef()
374 dyn_cast<ObjCContainerDecl>(IMD->getDeclContext()); in ActOnStartOfObjCMethodDef()
788 !(isa<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) && in checkTypeParamListConsistency()
789 cast<ObjCInterfaceDecl>(prevTypeParam->getDeclContext()) in checkTypeParamListConsistency()
790 ->getDefinition() == prevTypeParam->getDeclContext())) { in checkTypeParamListConsistency()
1983 if (Dcl->getDeclContext()->isFileContext()) in ActOnFinishObjCImplementation()
[all …]
DSemaDecl.cpp1220 !D->getDeclContext()->getRedeclContext()->Equals( in PushOnScopeChains()
1359 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage()
1387 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl()
1463 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
1464 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl()
2457 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
2585 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages()
2625 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl()
2626 New->getDeclContext()->getRedeclContext()) && in checkUsingShadowRedecl()
3231 isa<ObjCProtocolDecl>(oldMethod->getDeclContext()) in mergeObjCMethodDecls()
[all …]
DSemaTemplate.cpp74 Record = cast<CXXRecordDecl>(Record->getDeclContext()); in isAcceptableTemplateName()
928 PrevDecl = cast<CXXRecordDecl>(PrevDecl->getDeclContext()); in CheckClassTemplate()
950 (OutermostContext->Equals(PrevDecl->getDeclContext()) || in CheckClassTemplate()
951 OutermostContext->Encloses(PrevDecl->getDeclContext()))) { in CheckClassTemplate()
952 SemanticContext = PrevDecl->getDeclContext(); in CheckClassTemplate()
984 PrevClassTemplate->getDeclContext()->getRedeclContext()->Equals( in CheckClassTemplate()
1127 if (!Invalid && TUK != TUK_Friend && NewTemplate->getDeclContext()->isRecord()) in CheckClassTemplate()
1696 if (TypeDecl *Parent = dyn_cast<TypeDecl>(Template->getDeclContext())) in MatchTemplateParametersToScopeSpecifier()
2211 ClassTemplate->getDeclContext(), in CheckTemplateIdType()
2595 Context, VarTemplate->getDeclContext(), TemplateKWLoc, in ActOnVarTemplateSpecialization()
[all …]
DSemaTemplateInstantiate.cpp64 Ctx = D->getDeclContext(); in getTemplateInstantiationArgs()
160 Function->getDeclContext()->isFileContext() && in getTemplateInstantiationArgs()
498 FunctionDecl *FD = cast<FunctionDecl>(Param->getDeclContext()); in PrintInstantiationStack()
829 DeclContext *Owner = OrigTPL->getParam(0)->getDeclContext(); in TransformTemplateParameterList()
1296 assert(!cast<FunctionDecl>(E->getParam()->getDeclContext())-> in TransformCXXDefaultArgExpr()
1300 cast<FunctionDecl>(E->getParam()->getDeclContext()), in TransformCXXDefaultArgExpr()
1676 FunctionDecl *OwningFunc = cast<FunctionDecl>(OldParm->getDeclContext()); in SubstParmVarDecl()
1997 if (Member->getDeclContext() != Pattern) in InstantiateClass()
2059 dyn_cast_or_null<CXXRecordDecl>(ND->getDeclContext()); in InstantiateClass()
2727 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(PV->getDeclContext())) { in getCanonicalParmVarDecl()
/external/clang/lib/Frontend/
DASTConsumers.cpp304 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
334 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
350 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
366 const DeclContext* SemaDC = D->getDeclContext(); in PrintDeclContext()
/external/clang/tools/libclang/
DIndexDecl.cpp232 D->getDeclContext()); in VisitObjCPropertyImplDecl()
237 !hasUserDefined(MD, cast<ObjCImplDecl>(D->getDeclContext()))) in VisitObjCPropertyImplDecl()
243 !hasUserDefined(MD, cast<ObjCImplDecl>(D->getDeclContext()))) in VisitObjCPropertyImplDecl()
DIndexingContext.cpp338 getContainerInfo(D->getDeclContext(), DInfo.SemanticContainer); in handleDecl()
341 if (LexicalDC == D->getDeclContext()) { in handleDecl()
593 D->getDeclContext()); in handleSynthesizedObjCProperty()
974 if (isa<CXXRecordDecl>(D->getDeclContext())) { in getEntityInfo()
982 CXXRec = dyn_cast<CXXRecordDecl>(D->getDeclContext())) { in getEntityInfo()
/external/clang/lib/ARCMigrate/
DTransGCCalls.cpp49 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) in VisitCallExpr()
DTransGCAttrs.cpp144 return isMigratable(cast<Decl>(D->getDeclContext())); in isMigratable()
267 cast<Decl>(IndProps.front()->getDeclContext()))) { in checkAllAtProps()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerContext.cpp60 const DeclContext *DC = FD->getDeclContext(); in isCLibraryFunction()
/external/clang/lib/StaticAnalyzer/Checkers/
DLLVMConventionsChecker.cpp42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace()
48 return isa<TranslationUnitDecl>(ND->getDeclContext()); in InNamespace()
DObjCUnusedIVarsChecker.cpp153 Scan(M, D->getDeclContext(), SM.getFileID(D->getLocation()), SM); in checkObjCUnusedIvar()
/external/clang/lib/CodeGen/
DCGDebugInfo.cpp155 return getContextDescriptor(cast<Decl>(D->getDeclContext()), in getDeclContextDescriptor()
221 const DeclContext *DC = OMD->getDeclContext(); in getObjCMethodName()
1121 if (const CXXRecordDecl *NRD = dyn_cast<CXXRecordDecl>(RD->getDeclContext())) in isFunctionLocalClass()
1123 if (isa<FunctionDecl>(RD->getDeclContext())) in isFunctionLocalClass()
2433 dyn_cast_or_null<NamespaceDecl>(FD->getDeclContext())) in collectFunctionDeclProps()
2436 dyn_cast_or_null<RecordDecl>(FD->getDeclContext())) { in collectFunctionDeclProps()
2465 if (VD->getDeclContext() && !isa<FunctionDecl>(VD->getDeclContext()) && in collectVarDeclProps()
2466 !isa<ObjCMethodDecl>(VD->getDeclContext())) in collectVarDeclProps()
2478 : VD->getDeclContext(); in collectVarDeclProps()
2929 VD->isImplicit() || (isa<Decl>(VD->getDeclContext()) && in EmitDeclare()
[all …]
/external/clang/unittests/Tooling/
DLookupTest.cpp40 Callee->getQualifier(), Visitor.DeclStack.back()->getDeclContext(), FD, in TEST()
/external/clang/lib/Serialization/
DASTWriterDecl.cpp278 Writer.AddDeclRef(cast_or_null<Decl>(D->getDeclContext()), Record); in VisitDecl()
279 if (D->getDeclContext() != D->getLexicalDeclContext()) in VisitDecl()
305 auto *DC = D->getDeclContext(); in VisitDecl()
346 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitTypedefDecl()
409 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitEnumDecl()
438 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitRecordDecl()
697 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitObjCIvarDecl()
830 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitFieldDecl()
905 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitVarDecl()
954 if (D->getDeclContext() == D->getLexicalDeclContext() && in VisitParmVarDecl()
[all …]

1234