Lines Matching refs:getDeclContext
1203 !D->getDeclContext()->getRedeclContext()->Equals( in PushOnScopeChains()
1342 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage()
1370 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl()
1446 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
1447 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl()
2426 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
2527 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages()
2574 !Old->getDeclContext()->getRedeclContext()->Equals( in MergeFunctionDecl()
2575 New->getDeclContext()->getRedeclContext()) && in MergeFunctionDecl()
3114 isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration in mergeObjCMethodDecls()
3480 Tag->getDeclContext(), ManglingContextDecl)) { in handleTagNumbering()
3623 Record->getDeclContext()->isRecord()) in ParsedFreeStandingDeclSpec()
3689 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
3949 DeclContext *Owner = Record->getDeclContext(); in BuildAnonymousStructOrUnion()
4046 } else if (isa<TagDecl>(Mem) && Mem->getDeclContext() != Record) { in BuildAnonymousStructOrUnion()
4181 NewVD->getDeclContext(), ManglingContextDecl)) { in BuildAnonymousStructOrUnion()
4488 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
5077 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
5130 DeclContext *PrevOuterContext = PrevDecl->getDeclContext(); in isOutOfScopePreviousDeclaration()
5396 const DeclContext *DC = VD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
5407 const DeclContext *DC = FD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
5972 NewVD->getDeclContext(), ManglingContextDecl)) { in ActOnVariableDeclarator()
6014 DeclContext *NewDC = D->getDeclContext(); in CheckShadow()
6041 DeclContext *OldDC = ShadowedDecl->getDeclContext(); in CheckShadow()
6181 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in checkForConflictWithNonVisibleExternC()
6193 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) in checkForConflictWithNonVisibleExternC()
6549 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration()
6617 Correction.getCorrectionDecl()->getDeclContext(), in DiagnoseInvalidRedeclaration()
7110 dyn_cast<CXXRecordDecl>(NewFD->getDeclContext())) { in ActOnFunctionDeclarator()
7419 assert(Param->getDeclContext() != NewFD && "Was set before ?"); in ActOnFunctionDeclarator()
7710 if (isa<CXXRecordDecl>(NewFD->getDeclContext())) in ActOnFunctionDeclarator()
7864 NewFD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnFunctionDeclarator()
8642 } else if (isa<TranslationUnitDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
8643 isa<NamespaceDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
9534 var->getDeclContext()->getRedeclContext()->isFileContext() && in CheckCompleteVariableDeclaration()
9636 if (!var->getDeclContext()->isDependentContext() && in CheckCompleteVariableDeclaration()
9715 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
9745 const DeclContext *DC = VD->getDeclContext(); in FinalizeDeclaration()
10967 FD->getDeclContext()->isTranslationUnit()) || in AddKnownFunctionAttributes()
10968 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
10969 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
11237 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in createFriendTagNNSFixIt()
11450 if (ND->getDeclContext()->getRedeclContext() != SearchDC) in ActOnTag()
11475 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in ActOnTag()
11477 !EnclosingNS->Encloses(ND->getDeclContext())) { in ActOnTag()
11614 Tag->getDeclContext()->getRedeclContext() in ActOnTag()
11615 ->Equals(TD->getDeclContext()->getRedeclContext())) { in ActOnTag()
11778 SearchDC = PrevTagDecl->getDeclContext(); in ActOnTag()
12047 DeclContext *DC = New->getDeclContext()->getRedeclContext(); in ActOnTag()
12065 New->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnTag()
12163 Tag->getDeclContext()->isFileContext()) in ActOnTagFinishDefinition()
13471 TheEnumDecl->getDeclContext()->getRedeclContext())) in ActOnEnumConstant()
13526 if (cast<EnumDecl>(TagDecl::castFromDeclContext(ECD->getDeclContext())) != in ValidDuplicateEnum()