Lines Matching refs:getDeclContext

106         RD = cast<CXXRecordDecl>(RD->getDeclContext());  in ValidateCandidate()
1850 if (D->getDeclContext()->isFileContext()) in isUsingDeclNotAtClassScope()
1900 const DeclContext *DC = D->getDeclContext(); in mightHaveNonExternalLinkage()
1928 if (D->getDeclContext()->isDependentContext() || in ShouldWarnIfUnusedFileScopedDecl()
2038 bool WithinFunction = D->getDeclContext()->isFunctionOrMethod(); in ShouldDiagnoseUnusedDecl()
2039 if (const auto *R = dyn_cast<CXXRecordDecl>(D->getDeclContext())) in ShouldDiagnoseUnusedDecl()
2524 CurContext = New->getDeclContext(); in LazilyCreateBuiltin()
3383 cast<FunctionDecl>(oldDecl->getDeclContext())->getFirstDecl(); in mergeParamDeclAttributes()
3565 const DeclContext *DC = Old->getDeclContext(); in haveIncompatibleLanguageLinkages()
3606 !Old->getDeclContext()->getRedeclContext()->Equals( in checkUsingShadowRedecl()
3607 New->getDeclContext()->getRedeclContext()) && in checkUsingShadowRedecl()
3654 auto *NamedDC = NewD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
3655 auto *SemaDC = OldD->getDeclContext()->getRedeclContext(); in adjustDeclContextForDeclaratorDecl()
4427 isa<ObjCProtocolDecl>(oldMethod->getDeclContext()) in mergeObjCMethodDecls()
4430 : isa<ObjCImplDecl>(newMethod->getDeclContext()) ? AMK_Redeclaration in mergeObjCMethodDecls()
4892 New->getDeclContext()->isDependentContext())) { in checkVarDeclRedefinition()
4953 getCurrentMangleNumberContext(Tag->getDeclContext()); in handleTagNumbering()
5236 Record->getDeclContext()->isRecord()) { in ParsedFreeStandingDeclSpec()
5312 Tag && Tag->getDeclContext()->isFunctionOrMethod()) in ParsedFreeStandingDeclSpec()
5615 DeclContext *Owner = Record->getDeclContext(); in BuildAnonymousStructOrUnion()
5723 } else if (isa<TagDecl>(Mem) && Mem->getDeclContext() != Record) { in BuildAnonymousStructOrUnion()
5868 getCurrentMangleNumberContext(NewVD->getDeclContext()); in BuildAnonymousStructOrUnion()
6224 Dcl && Dcl->getDeclContext()->isFileContext()) in ActOnDeclarator()
6881 NewTD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnTypedefNameDecl()
6946 DeclContext *PrevOuterContext = PrevDecl->getDeclContext(); in isOutOfScopePreviousDeclaration()
7101 const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(VD->getDeclContext()); in checkAttributesAfterMerging()
7342 const DeclContext *DC = VD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
7359 const DeclContext *DC = FD->getDeclContext()->getRedeclContext(); in shouldConsiderLinkage()
7422 DeclContext *DC = NewVD->getDeclContext(); in diagnoseOpenCLTypes()
7588 bool SameDC = PrevDecl->getDeclContext()->getRedeclContext()->Equals( in ActOnVariableDeclarator()
8218 getCurrentMangleNumberContext(NewVD->getDeclContext()); in ActOnVariableDeclarator()
8229 NewVD->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnVariableDeclarator()
8332 if (D->getDeclContext()->isRecord()) in getShadowedDeclaration()
8365 DeclContext *NewDC = D->getDeclContext(); in CheckShadow()
8395 DeclContext *OldDC = ShadowedDecl->getDeclContext()->getRedeclContext(); in CheckShadow()
8485 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in DiagnoseShadowingLambdaDecls()
8535 const DeclContext *OldDC = ShadowedDecl->getDeclContext(); in CheckShadowingDeclModification()
8636 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in checkForConflictWithNonVisibleExternC()
8648 if (ND->getDeclContext()->getRedeclContext()->isTranslationUnit()) in checkForConflictWithNonVisibleExternC()
9099 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration()
9169 Correction.getCorrectionDecl()->getDeclContext(), in DiagnoseInvalidRedeclaration()
9900 dyn_cast<CXXRecordDecl>(NewFD->getDeclContext())) { in ActOnFunctionDeclarator()
10309 assert(Param->getDeclContext() != NewFD && "Was set before ?"); in ActOnFunctionDeclarator()
10332 TD = cast<EnumDecl>(ECD->getDeclContext()); in ActOnFunctionDeclarator()
10643 if (isa<CXXRecordDecl>(NewFD->getDeclContext())) in ActOnFunctionDeclarator()
10733 NewFD->getDeclContext()->getRedeclContext()->isFileContext()) { in ActOnFunctionDeclarator()
10810 NewFD->getDeclContext()->getRedeclContext()->isTranslationUnit()) { in ActOnFunctionDeclarator()
11072 if (D->getFriendObjectKind() && D->getDeclContext()->isFileContext()) in shouldLinkDependentDeclWithPrevious()
11755 OldDecl->getDeclContext()->getRedeclContext() != in CheckMultiVersionFunction()
11756 NewFD->getDeclContext()->getRedeclContext()) { in CheckMultiVersionFunction()
12939 } else if (isa<TranslationUnitDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
12940 isa<NamespaceDecl>(OrigDecl->getDeclContext()) || in HandleDeclRefExpr()
14413 var->getDeclContext()->getRedeclContext()->isFileContext() && in CheckCompleteVariableDeclaration()
14794 cast<CXXRecordDecl>(VD->getFirstDecl()->getDeclContext()); in FinalizeDeclaration()
14840 const DeclContext *DC = VD->getDeclContext(); in FinalizeDeclaration()
15496 if (isa<TranslationUnitDecl>(FD->getDeclContext()->getRedeclContext())) in ShouldWarnAboutMissingPrototype()
16831 if ((!getLangOpts().CPlusPlus && FD->getDeclContext()->isTranslationUnit()) || in AddKnownFunctionAttributes()
16832 (isa<LinkageSpecDecl>(FD->getDeclContext()) && in AddKnownFunctionAttributes()
16833 cast<LinkageSpecDecl>(FD->getDeclContext())->getLanguage() == in AddKnownFunctionAttributes()
17158 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in createFriendTagNNSFixIt()
17458 if (!ND->getDeclContext()->getRedeclContext()->Equals( in ActOnTag()
17484 DeclContext *DC = ND->getDeclContext()->getRedeclContext(); in ActOnTag()
17486 !EnclosingNS->Encloses(ND->getDeclContext())) { in ActOnTag()
17647 Tag->getDeclContext()->getRedeclContext() in ActOnTag()
17648 ->Equals(TD->getDeclContext()->getRedeclContext())) { in ActOnTag()
17666 *this, OldTag->getDeclContext(), SearchDC))) { in ActOnTag()
17763 ->Equals(PrevDecl->getDeclContext()->getRedeclContext())) in ActOnTag()
17855 SearchDC = PrevTagDecl->getDeclContext(); in ActOnTag()
18126 DeclContext *DC = New->getDeclContext()->getRedeclContext(); in ActOnTag()
18141 New->getDeclContext()->getRedeclContext()->isTranslationUnit() && in ActOnTag()
18278 Tag->getDeclContext()->isFileContext()) in ActOnTagFinishDefinition()
19901 EnumDecl *PrevED = cast<EnumDecl>(PrevECD->getDeclContext()); in shouldSkipAnonEnumBody()
19943 DiagnoseClassNameShadow(TheEnumDecl->getDeclContext(), in ActOnEnumConstant()
20017 if (cast<EnumDecl>(TagDecl::castFromDeclContext(ECD->getDeclContext())) != in ValidDuplicateEnum()