Lines Matching refs:getDeclContext
1260 !D->getDeclContext()->getRedeclContext()->Equals( in PushOnScopeChains()
1399 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage()
1427 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl()
1506 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
1507 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl()
2531 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
2659 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages()
2699 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl()
2700 New->getDeclContext()->getRedeclContext()) && in checkUsingShadowRedecl()
3303 isa<ObjCProtocolDecl>(oldMethod->getDeclContext()) in mergeObjCMethodDecls()
3305 : isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration in mergeObjCMethodDecls()
3669 New->getDeclContext()->isDependentContext())) { in MergeVarDecl()
3752 Tag->getDeclContext(), ManglingContextDecl)) { in handleTagNumbering()
3926 Record->getDeclContext()->isRecord()) { in ParsedFreeStandingDeclSpec()
4002 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
4251 DeclContext *Owner = Record->getDeclContext(); in BuildAnonymousStructOrUnion()
4353 } else if (isa<TagDecl>(Mem) && Mem->getDeclContext() != Record) { in BuildAnonymousStructOrUnion()
4486 NewVD->getDeclContext(), ManglingContextDecl)) { in BuildAnonymousStructOrUnion()
4793 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
5409 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
5462 DeclContext *PrevOuterContext = PrevDecl->getDeclContext(); in isOutOfScopePreviousDeclaration()
5769 const DeclContext *DC = VD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
5780 const DeclContext *DC = FD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
6471 NewVD->getDeclContext(), ManglingContextDecl)) { in ActOnVariableDeclarator()
6481 NewVD->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnVariableDeclarator()
6540 DeclContext *NewDC = D->getDeclContext(); in CheckShadow()
6578 DeclContext *OldDC = ShadowedDecl->getDeclContext(); in CheckShadow()
6631 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in CheckShadowingDeclModification()
6732 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in checkForConflictWithNonVisibleExternC()
6744 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) in checkForConflictWithNonVisibleExternC()
7164 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration()
7232 Correction.getCorrectionDecl()->getDeclContext(), in DiagnoseInvalidRedeclaration()
7727 dyn_cast<CXXRecordDecl>(NewFD->getDeclContext())) { in ActOnFunctionDeclarator()
8122 assert(Param->getDeclContext() != NewFD && "Was set before ?"); in ActOnFunctionDeclarator()
8414 if (isa<CXXRecordDecl>(NewFD->getDeclContext())) in ActOnFunctionDeclarator()
8536 NewFD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnFunctionDeclarator()
9381 } else if (isa<TranslationUnitDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
9382 isa<NamespaceDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
9621 VDecl->getDeclContext()->isDependentContext())) { in AddInitializerToDecl()
10330 var->getDeclContext()->getRedeclContext()->isFileContext() && in CheckCompleteVariableDeclaration()
10431 if (!var->getDeclContext()->isDependentContext() && in CheckCompleteVariableDeclaration()
10584 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
10622 const DeclContext *DC = VD->getDeclContext(); in FinalizeDeclaration()
11904 FD->getDeclContext()->isTranslationUnit()) || in AddKnownFunctionAttributes()
11905 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
11906 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
12177 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in createFriendTagNNSFixIt()
12445 if (!ND->getDeclContext()->getRedeclContext()->Equals( in ActOnTag()
12471 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in ActOnTag()
12473 !EnclosingNS->Encloses(ND->getDeclContext())) { in ActOnTag()
12614 Tag->getDeclContext()->getRedeclContext() in ActOnTag()
12615 ->Equals(TD->getDeclContext()->getRedeclContext())) { in ActOnTag()
12633 *this, OldTag->getDeclContext(), SearchDC))) { in ActOnTag()
12739 ->Equals(PrevDecl->getDeclContext()->getRedeclContext())) in ActOnTag()
12815 SearchDC = PrevTagDecl->getDeclContext(); in ActOnTag()
13080 DeclContext *DC = New->getDeclContext()->getRedeclContext(); in ActOnTag()
13097 New->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnTag()
13195 Tag->getDeclContext()->isFileContext()) in ActOnTagFinishDefinition()
14494 EnumDecl *PrevED = cast<EnumDecl>(PrevECD->getDeclContext()); in shouldSkipAnonEnumBody()
14534 DiagnoseClassNameShadow(TheEnumDecl->getDeclContext(), in ActOnEnumConstant()
14603 if (cast<EnumDecl>(TagDecl::castFromDeclContext(ECD->getDeclContext())) != in ValidDuplicateEnum()