Lines Matching refs:getDeclContext
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()
3243 auto *NamedDC = NewD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3244 auto *SemaDC = OldD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3929 isa<ObjCProtocolDecl>(oldMethod->getDeclContext()) in mergeObjCMethodDecls()
3932 : isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration in mergeObjCMethodDecls()
4395 New->getDeclContext()->isDependentContext())) { in checkVarDeclRedefinition()
4455 getCurrentMangleNumberContext(Tag->getDeclContext()); in handleTagNumbering()
4731 Record->getDeclContext()->isRecord()) { in ParsedFreeStandingDeclSpec()
4807 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
5058 DeclContext *Owner = Record->getDeclContext(); in BuildAnonymousStructOrUnion()
5166 } else if (isa<TagDecl>(Mem) && Mem->getDeclContext() != Record) { in BuildAnonymousStructOrUnion()
5311 getCurrentMangleNumberContext(NewVD->getDeclContext()); in BuildAnonymousStructOrUnion()
5645 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
6295 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
6348 DeclContext *PrevOuterContext = PrevDecl->getDeclContext(); in isOutOfScopePreviousDeclaration()
6504 const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(VD->getDeclContext()); in checkAttributesAfterMerging()
6734 const DeclContext *DC = VD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
6748 const DeclContext *DC = FD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
6810 DeclContext *DC = NewVD->getDeclContext(); in diagnoseOpenCLTypes()
7538 getCurrentMangleNumberContext(NewVD->getDeclContext()); in ActOnVariableDeclarator()
7549 NewVD->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnVariableDeclarator()
7650 if (D->getDeclContext()->isRecord()) in getShadowedDeclaration()
7683 DeclContext *NewDC = D->getDeclContext(); in CheckShadow()
7713 DeclContext *OldDC = ShadowedDecl->getDeclContext()->getRedeclContext(); in CheckShadow()
7790 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in DiagnoseShadowingLambdaDecls()
7830 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in CheckShadowingDeclModification()
7931 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in checkForConflictWithNonVisibleExternC()
7943 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) in checkForConflictWithNonVisibleExternC()
8357 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration()
8427 Correction.getCorrectionDecl()->getDeclContext(), in DiagnoseInvalidRedeclaration()
9084 dyn_cast<CXXRecordDecl>(NewFD->getDeclContext())) { in ActOnFunctionDeclarator()
9432 assert(Param->getDeclContext() != NewFD && "Was set before ?"); in ActOnFunctionDeclarator()
9455 TD = cast<EnumDecl>(ECD->getDeclContext()); in ActOnFunctionDeclarator()
9772 if (isa<CXXRecordDecl>(NewFD->getDeclContext())) in ActOnFunctionDeclarator()
9849 NewFD->getDeclContext()->getRedeclContext()->isFileContext()) { in ActOnFunctionDeclarator()
9933 NewFD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnFunctionDeclarator()
10186 if (D->getFriendObjectKind() && D->getDeclContext()->isFileContext()) in shouldLinkDependentDeclWithPrevious()
10745 OldDecl->getDeclContext()->getRedeclContext() != in CheckMultiVersionFunction()
10746 NewFD->getDeclContext()->getRedeclContext()) { in CheckMultiVersionFunction()
11647 } else if (isa<TranslationUnitDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
11648 isa<NamespaceDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
13058 var->getDeclContext()->getRedeclContext()->isFileContext() && in CheckCompleteVariableDeclaration()
13429 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
13475 const DeclContext *DC = VD->getDeclContext(); in FinalizeDeclaration()
14046 if (isa<TranslationUnitDecl>(FD->getDeclContext()->getRedeclContext())) in ShouldWarnAboutMissingPrototype()
15153 FD->getDeclContext()->isTranslationUnit()) || in AddKnownFunctionAttributes()
15154 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
15155 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
15478 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in createFriendTagNNSFixIt()
15776 if (!ND->getDeclContext()->getRedeclContext()->Equals( in ActOnTag()
15802 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in ActOnTag()
15804 !EnclosingNS->Encloses(ND->getDeclContext())) { in ActOnTag()
15952 Tag->getDeclContext()->getRedeclContext() in ActOnTag()
15953 ->Equals(TD->getDeclContext()->getRedeclContext())) { in ActOnTag()
15971 *this, OldTag->getDeclContext(), SearchDC))) { in ActOnTag()
16067 ->Equals(PrevDecl->getDeclContext()->getRedeclContext())) in ActOnTag()
16159 SearchDC = PrevTagDecl->getDeclContext(); in ActOnTag()
16423 DeclContext *DC = New->getDeclContext()->getRedeclContext(); in ActOnTag()
16438 New->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnTag()
16566 Tag->getDeclContext()->isFileContext()) in ActOnTagFinishDefinition()
17924 EnumDecl *PrevED = cast<EnumDecl>(PrevECD->getDeclContext()); in shouldSkipAnonEnumBody()
17966 DiagnoseClassNameShadow(TheEnumDecl->getDeclContext(), in ActOnEnumConstant()
18040 if (cast<EnumDecl>(TagDecl::castFromDeclContext(ECD->getDeclContext())) != in ValidDuplicateEnum()