Lines Matching refs:getDeclContext
115 RD = cast<CXXRecordDecl>(RD->getDeclContext()); in ValidateCandidate()
1770 if (D->getDeclContext()->isFileContext()) in isUsingDeclNotAtClassScope()
1808 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage()
1836 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl()
1946 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
1947 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl()
2384 CurContext = New->getDeclContext(); in LazilyCreateBuiltin()
3240 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
3422 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages()
3463 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl()
3464 New->getDeclContext()->getRedeclContext()) && in checkUsingShadowRedecl()
3511 auto *NamedDC = NewD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3512 auto *SemaDC = OldD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
4308 isa<ObjCProtocolDecl>(oldMethod->getDeclContext()) in mergeObjCMethodDecls()
4311 : isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration in mergeObjCMethodDecls()
4758 New->getDeclContext()->isDependentContext())) { in checkVarDeclRedefinition()
4817 getCurrentMangleNumberContext(Tag->getDeclContext()); in handleTagNumbering()
5081 Record->getDeclContext()->isRecord()) { in ParsedFreeStandingDeclSpec()
5157 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
5452 DeclContext *Owner = Record->getDeclContext(); in BuildAnonymousStructOrUnion()
5560 } else if (isa<TagDecl>(Mem) && Mem->getDeclContext() != Record) { in BuildAnonymousStructOrUnion()
5708 getCurrentMangleNumberContext(NewVD->getDeclContext()); in BuildAnonymousStructOrUnion()
6049 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
6722 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
6787 DeclContext *PrevOuterContext = PrevDecl->getDeclContext(); in isOutOfScopePreviousDeclaration()
6903 const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(VD->getDeclContext()); in checkAttributesAfterMerging()
7144 const DeclContext *DC = VD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
7161 const DeclContext *DC = FD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
7222 DeclContext *DC = NewVD->getDeclContext(); in diagnoseOpenCLTypes()
7388 bool SameDC = PrevDecl->getDeclContext()->getRedeclContext()->Equals( in ActOnVariableDeclarator()
8045 getCurrentMangleNumberContext(NewVD->getDeclContext()); in ActOnVariableDeclarator()
8056 NewVD->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnVariableDeclarator()
8155 if (D->getDeclContext()->isRecord()) in getShadowedDeclaration()
8177 DeclContext *NewDC = D->getDeclContext(); in CheckShadow()
8207 DeclContext *OldDC = ShadowedDecl->getDeclContext()->getRedeclContext(); in CheckShadow()
8295 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in DiagnoseShadowingLambdaDecls()
8345 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in CheckShadowingDeclModification()
8446 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in checkForConflictWithNonVisibleExternC()
8458 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) in checkForConflictWithNonVisibleExternC()
8947 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration()
9017 Correction.getCorrectionDecl()->getDeclContext(), in DiagnoseInvalidRedeclaration()
9757 dyn_cast<CXXRecordDecl>(NewFD->getDeclContext())) { in ActOnFunctionDeclarator()
10169 assert(Param->getDeclContext() != NewFD && "Was set before ?"); in ActOnFunctionDeclarator()
10192 TD = cast<EnumDecl>(ECD->getDeclContext()); in ActOnFunctionDeclarator()
10536 if (isa<CXXRecordDecl>(NewFD->getDeclContext())) in ActOnFunctionDeclarator()
10626 NewFD->getDeclContext()->getRedeclContext()->isFileContext()) { in ActOnFunctionDeclarator()
10703 NewFD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnFunctionDeclarator()
10947 if (D->getFriendObjectKind() && D->getDeclContext()->isFileContext()) in shouldLinkDependentDeclWithPrevious()
11713 !OldDecl->getDeclContext()->getRedeclContext()->Equals( in CheckMultiVersionFunction()
11714 NewFD->getDeclContext()->getRedeclContext())) { in CheckMultiVersionFunction()
12738 } else if (isa<TranslationUnitDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
12739 isa<NamespaceDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
14218 var->getDeclContext()->getRedeclContext()->isFileContext() && in CheckCompleteVariableDeclaration()
14599 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
14645 const DeclContext *DC = VD->getDeclContext(); in FinalizeDeclaration()
15263 if (isa<TranslationUnitDecl>(FD->getDeclContext()->getRedeclContext())) in ShouldWarnAboutMissingPrototype()
16610 if ((!getLangOpts().CPlusPlus && FD->getDeclContext()->isTranslationUnit()) || in AddKnownFunctionAttributes()
16611 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
16612 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
16930 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in createFriendTagNNSFixIt()
17261 if (!ND->getDeclContext()->getRedeclContext()->Equals( in ActOnTag()
17287 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in ActOnTag()
17289 !EnclosingNS->Encloses(ND->getDeclContext())) { in ActOnTag()
17451 Tag->getDeclContext()->getRedeclContext() in ActOnTag()
17452 ->Equals(TD->getDeclContext()->getRedeclContext())) { in ActOnTag()
17471 *this, OldTag->getDeclContext(), SearchDC))) { in ActOnTag()
17568 ->Equals(PrevDecl->getDeclContext()->getRedeclContext())) in ActOnTag()
17660 SearchDC = PrevTagDecl->getDeclContext(); in ActOnTag()
17935 DeclContext *DC = New->getDeclContext()->getRedeclContext(); in ActOnTag()
17950 New->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnTag()
18092 Tag->getDeclContext()->isFileContext()) in ActOnTagFinishDefinition()
19568 EnumDecl *PrevED = cast<EnumDecl>(PrevECD->getDeclContext()); in shouldSkipAnonEnumBody()
19611 DiagnoseClassNameShadow(TheEnumDecl->getDeclContext(), in ActOnEnumConstant()
19686 if (cast<EnumDecl>(TagDecl::castFromDeclContext(ECD->getDeclContext())) != in ValidDuplicateEnum()