Lines Matching refs:getDeclContext

100         RD = cast<CXXRecordDecl>(RD->getDeclContext());  in ValidateCandidate()
1655 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage()
1683 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl()
1783 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
1784 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl()
2145 CurContext = New->getDeclContext(); in LazilyCreateBuiltin()
2996 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
3102 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages()
3142 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl()
3143 New->getDeclContext()->getRedeclContext()) && in checkUsingShadowRedecl()
3190 auto *NamedDC = NewD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3191 auto *SemaDC = OldD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3866 isa<ObjCProtocolDecl>(oldMethod->getDeclContext()) in mergeObjCMethodDecls()
3869 : isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration in mergeObjCMethodDecls()
4332 New->getDeclContext()->isDependentContext())) { in checkVarDeclRedefinition()
4392 getCurrentMangleNumberContext(Tag->getDeclContext()); in handleTagNumbering()
4668 Record->getDeclContext()->isRecord()) { in ParsedFreeStandingDeclSpec()
4744 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
4995 DeclContext *Owner = Record->getDeclContext(); in BuildAnonymousStructOrUnion()
5103 } else if (isa<TagDecl>(Mem) && Mem->getDeclContext() != Record) { in BuildAnonymousStructOrUnion()
5248 getCurrentMangleNumberContext(NewVD->getDeclContext()); in BuildAnonymousStructOrUnion()
5582 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
6232 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
6285 DeclContext *PrevOuterContext = PrevDecl->getDeclContext(); in isOutOfScopePreviousDeclaration()
6437 const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(VD->getDeclContext()); in checkAttributesAfterMerging()
6667 const DeclContext *DC = VD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
6681 const DeclContext *DC = FD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
6743 DeclContext *DC = NewVD->getDeclContext(); in diagnoseOpenCLTypes()
7472 getCurrentMangleNumberContext(NewVD->getDeclContext()); in ActOnVariableDeclarator()
7483 NewVD->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnVariableDeclarator()
7584 if (D->getDeclContext()->isRecord()) in getShadowedDeclaration()
7617 DeclContext *NewDC = D->getDeclContext(); in CheckShadow()
7647 DeclContext *OldDC = ShadowedDecl->getDeclContext()->getRedeclContext(); in CheckShadow()
7724 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in DiagnoseShadowingLambdaDecls()
7764 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in CheckShadowingDeclModification()
7865 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in checkForConflictWithNonVisibleExternC()
7877 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) in checkForConflictWithNonVisibleExternC()
8298 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration()
8368 Correction.getCorrectionDecl()->getDeclContext(), in DiagnoseInvalidRedeclaration()
9025 dyn_cast<CXXRecordDecl>(NewFD->getDeclContext())) { in ActOnFunctionDeclarator()
9373 assert(Param->getDeclContext() != NewFD && "Was set before ?"); in ActOnFunctionDeclarator()
9396 TD = cast<EnumDecl>(ECD->getDeclContext()); in ActOnFunctionDeclarator()
9713 if (isa<CXXRecordDecl>(NewFD->getDeclContext())) in ActOnFunctionDeclarator()
9790 NewFD->getDeclContext()->getRedeclContext()->isFileContext()) { in ActOnFunctionDeclarator()
9874 NewFD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnFunctionDeclarator()
10127 if (D->getFriendObjectKind() && D->getDeclContext()->isFileContext()) in shouldLinkDependentDeclWithPrevious()
10686 OldDecl->getDeclContext()->getRedeclContext() != in CheckMultiVersionFunction()
10687 NewFD->getDeclContext()->getRedeclContext()) { in CheckMultiVersionFunction()
11588 } else if (isa<TranslationUnitDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
11589 isa<NamespaceDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
12999 var->getDeclContext()->getRedeclContext()->isFileContext() && in CheckCompleteVariableDeclaration()
13373 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
13419 const DeclContext *DC = VD->getDeclContext(); in FinalizeDeclaration()
13990 if (isa<TranslationUnitDecl>(FD->getDeclContext()->getRedeclContext())) in ShouldWarnAboutMissingPrototype()
15097 FD->getDeclContext()->isTranslationUnit()) || in AddKnownFunctionAttributes()
15098 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
15099 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
15422 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in createFriendTagNNSFixIt()
15720 if (!ND->getDeclContext()->getRedeclContext()->Equals( in ActOnTag()
15746 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in ActOnTag()
15748 !EnclosingNS->Encloses(ND->getDeclContext())) { in ActOnTag()
15896 Tag->getDeclContext()->getRedeclContext() in ActOnTag()
15897 ->Equals(TD->getDeclContext()->getRedeclContext())) { in ActOnTag()
15915 *this, OldTag->getDeclContext(), SearchDC))) { in ActOnTag()
16011 ->Equals(PrevDecl->getDeclContext()->getRedeclContext())) in ActOnTag()
16103 SearchDC = PrevTagDecl->getDeclContext(); in ActOnTag()
16367 DeclContext *DC = New->getDeclContext()->getRedeclContext(); in ActOnTag()
16382 New->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnTag()
16506 Tag->getDeclContext()->isFileContext()) in ActOnTagFinishDefinition()
17867 EnumDecl *PrevED = cast<EnumDecl>(PrevECD->getDeclContext()); in shouldSkipAnonEnumBody()
17909 DiagnoseClassNameShadow(TheEnumDecl->getDeclContext(), in ActOnEnumConstant()
17983 if (cast<EnumDecl>(TagDecl::castFromDeclContext(ECD->getDeclContext())) != in ValidDuplicateEnum()