Lines Matching refs:SemaRef
1521 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { in isVisibleSlow() argument
1525 if (SemaRef.getLangOpts().ModulesLocalVisibility) { in isVisibleSlow()
1526 DeclModule = SemaRef.getOwningModule(D); in isVisibleSlow()
1537 (SemaRef.isModuleVisible(DeclModule) || in isVisibleSlow()
1538 SemaRef.hasVisibleMergedDefinition(D))) in isVisibleSlow()
1551 ? isVisible(SemaRef, cast<NamedDecl>(DC)) in isVisibleSlow()
1552 : SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC))) { in isVisibleSlow()
1553 if (SemaRef.ActiveTemplateInstantiations.empty() && in isVisibleSlow()
1555 !SemaRef.getLangOpts().ModulesLocalVisibility) { in isVisibleSlow()
1566 llvm::DenseSet<Module*> &LookupModules = SemaRef.getLookupModules(); in isVisibleSlow()
1571 DeclModule = SemaRef.getOwningModule(D); in isVisibleSlow()
1609 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D) { in findAcceptableDecl() argument
1610 assert(!LookupResult::isVisible(SemaRef, D) && "not in slow case"); in findAcceptableDecl()
1621 if (LookupResult::isVisible(SemaRef, ND)) in findAcceptableDecl()
3760 static void LookupPotentialTypoResult(Sema &SemaRef,
3772 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { in checkCorrectionVisibility() argument
3779 if (!LookupResult::isVisible(SemaRef, *DI)) in checkCorrectionVisibility()
3790 if (!LookupResult::isVisible(SemaRef, *DI)) in checkCorrectionVisibility()
3791 VisibleDecl = findAcceptableDecl(SemaRef, *DI); in checkCorrectionVisibility()
3869 if (!LookupResult::isVisible(SemaRef, ND) && Name != Typo && in FoundDecl()
3870 !findAcceptableDecl(SemaRef, ND)) in FoundDecl()
3903 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED); in addName()
3924 checkCorrectionVisibility(SemaRef, Correction); in addCorrection()
3935 std::string CorrectionStr = Correction.getAsString(SemaRef.getLangOpts()); in addCorrection()
3943 if (CorrectionStr < RI->getAsString(SemaRef.getLangOpts())) in addCorrection()
3972 auto &Types = SemaRef.getASTContext().getTypes(); in addNamespaces()
4019 LookupPotentialTypoResult(SemaRef, Result, Name, S, TempSS, TempMemberContext, in resolveCorrection()
4052 checkCorrectionVisibility(SemaRef, Candidate); in resolveCorrection()
4097 if (!SemaRef.LookupQualifiedName(Result, Ctx)) in performQualifiedLookups()
4106 std::string NewQualified = TC.getAsString(SemaRef.getLangOpts()); in performQualifiedLookups()
4109 SS->getScopeRep()->print(OldOStream, SemaRef.getPrintingPolicy()); in performQualifiedLookups()
4119 if (SemaRef.CheckMemberAccess(TC.getCorrectionRange().getBegin(), in performQualifiedLookups()
4262 static void LookupPotentialTypoResult(Sema &SemaRef, in LookupPotentialTypoResult() argument
4292 SemaRef.LookupQualifiedName(Res, MemberContext); in LookupPotentialTypoResult()
4296 SemaRef.LookupParsedName(Res, S, SS, /*AllowBuiltinCreation=*/false, in LookupPotentialTypoResult()
4301 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) { in LookupPotentialTypoResult()
4316 static void AddKeywordsToConsumer(Sema &SemaRef, in AddKeywordsToConsumer() argument
4345 if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer()
4347 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) in AddKeywordsToConsumer()
4349 else if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer()
4352 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4357 if (SemaRef.getLangOpts().CPlusPlus11) { in AddKeywordsToConsumer()
4366 if (SemaRef.getLangOpts().GNUMode) in AddKeywordsToConsumer()
4377 if (CCC.WantCXXNamedCasts && SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4386 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4391 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4399 if (isa<CXXMethodDecl>(SemaRef.CurContext) && in AddKeywordsToConsumer()
4400 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) in AddKeywordsToConsumer()
4403 if (SemaRef.getLangOpts().CPlusPlus11) { in AddKeywordsToConsumer()
4409 if (SemaRef.getLangOpts().C11) { in AddKeywordsToConsumer()
4417 if (SemaRef.getCurFunctionOrMethodDecl() || SemaRef.getCurBlock()) { in AddKeywordsToConsumer()
4425 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4436 if (!SemaRef.getCurFunction()->SwitchStack.empty()) { in AddKeywordsToConsumer()
4441 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4457 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4460 if (SemaRef.getLangOpts().CPlusPlus11) in AddKeywordsToConsumer()
4866 FunctionCallFilterCCC::FunctionCallFilterCCC(Sema &SemaRef, unsigned NumArgs, in FunctionCallFilterCCC() argument
4870 CurContext(SemaRef.CurContext), MemberFn(ME) { in FunctionCallFilterCCC()
4872 WantFunctionLikeCasts = SemaRef.getLangOpts().CPlusPlus && NumArgs == 1; in FunctionCallFilterCCC()