Lines Matching refs:getDeclContext
98 RD = cast<CXXRecordDecl>(RD->getDeclContext()); in ValidateCandidate()
1358 !D->getDeclContext()->getRedeclContext()->Equals( in PushOnScopeChains()
1535 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage()
1563 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl()
1668 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
1669 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl()
2738 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
2866 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages()
2906 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl()
2907 New->getDeclContext()->getRedeclContext()) && in checkUsingShadowRedecl()
2953 auto *NamedDC = NewD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
2954 auto *SemaDC = OldD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3616 isa<ObjCProtocolDecl>(oldMethod->getDeclContext()) in mergeObjCMethodDecls()
3618 : isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration in mergeObjCMethodDecls()
4078 New->getDeclContext()->isDependentContext())) { in checkVarDeclRedefinition()
4137 Tag->getDeclContext(), ManglingContextDecl)) { in handleTagNumbering()
4303 Record->getDeclContext()->isRecord()) { in ParsedFreeStandingDeclSpec()
4379 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
4627 DeclContext *Owner = Record->getDeclContext(); in BuildAnonymousStructOrUnion()
4731 } else if (isa<TagDecl>(Mem) && Mem->getDeclContext() != Record) { in BuildAnonymousStructOrUnion()
4859 NewVD->getDeclContext(), ManglingContextDecl)) { in BuildAnonymousStructOrUnion()
5182 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
5794 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
5847 DeclContext *PrevOuterContext = PrevDecl->getDeclContext(); in isOutOfScopePreviousDeclaration()
6189 const DeclContext *DC = VD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
6200 const DeclContext *DC = FD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
6883 NewVD->getDeclContext(), ManglingContextDecl)) { in ActOnVariableDeclarator()
6893 NewVD->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnVariableDeclarator()
6992 if (D->getDeclContext()->isRecord()) in getShadowedDeclaration()
7013 DeclContext *NewDC = D->getDeclContext(); in CheckShadow()
7043 DeclContext *OldDC = ShadowedDecl->getDeclContext()->getRedeclContext(); in CheckShadow()
7120 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in DiagnoseShadowingLambdaDecls()
7160 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in CheckShadowingDeclModification()
7261 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in checkForConflictWithNonVisibleExternC()
7273 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) in checkForConflictWithNonVisibleExternC()
7714 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration()
7784 Correction.getCorrectionDecl()->getDeclContext(), in DiagnoseInvalidRedeclaration()
8367 dyn_cast<CXXRecordDecl>(NewFD->getDeclContext())) { in ActOnFunctionDeclarator()
8680 assert(Param->getDeclContext() != NewFD && "Was set before ?"); in ActOnFunctionDeclarator()
8703 TD = cast<EnumDecl>(ECD->getDeclContext()); in ActOnFunctionDeclarator()
9014 if (isa<CXXRecordDecl>(NewFD->getDeclContext())) in ActOnFunctionDeclarator()
9144 NewFD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnFunctionDeclarator()
9360 if (D->getFriendObjectKind() && D->getDeclContext()->isFileContext()) in shouldLinkDependentDeclWithPrevious()
9881 OldDecl->getDeclContext()->getRedeclContext() != in CheckMultiVersionFunction()
9882 NewFD->getDeclContext()->getRedeclContext()) { in CheckMultiVersionFunction()
10754 } else if (isa<TranslationUnitDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
10755 isa<NamespaceDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
11778 var->getDeclContext()->getRedeclContext()->isFileContext() && in CheckCompleteVariableDeclaration()
12103 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
12141 const DeclContext *DC = VD->getDeclContext(); in FinalizeDeclaration()
13643 FD->getDeclContext()->isTranslationUnit()) || in AddKnownFunctionAttributes()
13644 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
13645 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
13963 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in createFriendTagNNSFixIt()
14257 if (!ND->getDeclContext()->getRedeclContext()->Equals( in ActOnTag()
14283 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in ActOnTag()
14285 !EnclosingNS->Encloses(ND->getDeclContext())) { in ActOnTag()
14431 Tag->getDeclContext()->getRedeclContext() in ActOnTag()
14432 ->Equals(TD->getDeclContext()->getRedeclContext())) { in ActOnTag()
14450 *this, OldTag->getDeclContext(), SearchDC))) { in ActOnTag()
14554 ->Equals(PrevDecl->getDeclContext()->getRedeclContext())) in ActOnTag()
14646 SearchDC = PrevTagDecl->getDeclContext(); in ActOnTag()
14911 DeclContext *DC = New->getDeclContext()->getRedeclContext(); in ActOnTag()
14926 New->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnTag()
15046 Tag->getDeclContext()->isFileContext()) in ActOnTagFinishDefinition()
16400 EnumDecl *PrevED = cast<EnumDecl>(PrevECD->getDeclContext()); in shouldSkipAnonEnumBody()
16442 DiagnoseClassNameShadow(TheEnumDecl->getDeclContext(), in ActOnEnumConstant()
16516 if (cast<EnumDecl>(TagDecl::castFromDeclContext(ECD->getDeclContext())) != in ValidDuplicateEnum()