Lines Matching refs:SemaRef

93     Sema &SemaRef;  member in __anon781a97630111::UnqualUsingDirectiveSet
101 UnqualUsingDirectiveSet(Sema &SemaRef) : SemaRef(SemaRef) {} in UnqualUsingDirectiveSet() argument
120 if (SemaRef.isVisible(I)) in visitScopeChain()
160 if (SemaRef.isVisible(UD) && visited.insert(NS).second) { in addUsingDirectives()
1678 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { in isVisibleSlow() argument
1682 Module *DeclModule = SemaRef.getOwningModule(D); in isVisibleSlow()
1686 if (SemaRef.isModuleVisible(DeclModule, D->isModulePrivate())) in isVisibleSlow()
1719 VisibleWithinParent = SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC)); in isVisibleSlow()
1721 VisibleWithinParent = isVisible(SemaRef, cast<NamedDecl>(DC)); in isVisibleSlow()
1723 (isa<FunctionDecl>(DC) && !SemaRef.getLangOpts().CPlusPlus)) in isVisibleSlow()
1724 VisibleWithinParent = isVisible(SemaRef, cast<NamedDecl>(DC)); in isVisibleSlow()
1730 if (SemaRef.hasMergedDefinitionInCurrentModule(cast<NamedDecl>(DC))) { in isVisibleSlow()
1737 VisibleWithinParent = SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC)); in isVisibleSlow()
1740 if (VisibleWithinParent && SemaRef.CodeSynthesisContexts.empty() && in isVisibleSlow()
1742 !SemaRef.getLangOpts().ModulesLocalVisibility) { in isVisibleSlow()
1835 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D, in findAcceptableDecl() argument
1837 assert(!LookupResult::isVisible(SemaRef, D) && "not in slow case"); in findAcceptableDecl()
1849 LookupResult::isVisible(SemaRef, ND)) in findAcceptableDecl()
3754 void lookupVisibleDecls(Sema &SemaRef, Scope *S, Sema::LookupNameKind Kind, in lookupVisibleDecls() argument
3759 UnqualUsingDirectiveSet UDirs(SemaRef); in lookupVisibleDecls()
3760 if (SemaRef.getLangOpts().CPlusPlus) { in lookupVisibleDecls()
3770 LookupResult Result(SemaRef, DeclarationName(), SourceLocation(), Kind); in lookupVisibleDecls()
3773 Visited.visitedContext(SemaRef.getASTContext().getTranslationUnitDecl()); in lookupVisibleDecls()
3778 void lookupVisibleDecls(Sema &SemaRef, DeclContext *Ctx, in lookupVisibleDecls() argument
3780 LookupResult Result(SemaRef, DeclarationName(), SourceLocation(), Kind); in lookupVisibleDecls()
3783 Visited.visitedContext(SemaRef.getASTContext().getTranslationUnitDecl()); in lookupVisibleDecls()
4140 static void LookupPotentialTypoResult(Sema &SemaRef,
4152 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { in checkCorrectionVisibility() argument
4156 if (!LookupResult::isVisible(SemaRef, *DI)) in checkCorrectionVisibility()
4168 if (LookupResult::isVisible(SemaRef, *DI)) { in checkCorrectionVisibility()
4244 if (!LookupResult::isVisible(SemaRef, ND) && Name != Typo) in FoundDecl()
4277 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED); in addName()
4298 checkCorrectionVisibility(SemaRef, Correction); in addCorrection()
4309 std::string CorrectionStr = Correction.getAsString(SemaRef.getLangOpts()); in addCorrection()
4317 if (CorrectionStr < RI->getAsString(SemaRef.getLangOpts())) in addCorrection()
4346 auto &Types = SemaRef.getASTContext().getTypes(); in addNamespaces()
4393 LookupPotentialTypoResult(SemaRef, Result, Name, S, TempSS, TempMemberContext, in resolveCorrection()
4426 checkCorrectionVisibility(SemaRef, Candidate); in resolveCorrection()
4471 if (!SemaRef.LookupQualifiedName(Result, Ctx)) in performQualifiedLookups()
4480 std::string NewQualified = TC.getAsString(SemaRef.getLangOpts()); in performQualifiedLookups()
4483 SS->getScopeRep()->print(OldOStream, SemaRef.getPrintingPolicy()); in performQualifiedLookups()
4493 if (SemaRef.CheckMemberAccess(TC.getCorrectionRange().getBegin(), in performQualifiedLookups()
4635 static void LookupPotentialTypoResult(Sema &SemaRef, in LookupPotentialTypoResult() argument
4665 SemaRef.LookupQualifiedName(Res, MemberContext); in LookupPotentialTypoResult()
4669 SemaRef.LookupParsedName(Res, S, SS, /*AllowBuiltinCreation=*/false, in LookupPotentialTypoResult()
4674 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) { in LookupPotentialTypoResult()
4689 static void AddKeywordsToConsumer(Sema &SemaRef, in AddKeywordsToConsumer() argument
4718 if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer()
4720 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) in AddKeywordsToConsumer()
4722 else if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer()
4725 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4730 if (SemaRef.getLangOpts().CPlusPlus11) { in AddKeywordsToConsumer()
4739 if (SemaRef.getLangOpts().GNUKeywords) in AddKeywordsToConsumer()
4750 if (CCC.WantCXXNamedCasts && SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4759 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4764 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4772 if (isa<CXXMethodDecl>(SemaRef.CurContext) && in AddKeywordsToConsumer()
4773 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) in AddKeywordsToConsumer()
4776 if (SemaRef.getLangOpts().CPlusPlus11) { in AddKeywordsToConsumer()
4782 if (SemaRef.getLangOpts().C11) { in AddKeywordsToConsumer()
4790 if (SemaRef.getCurFunctionOrMethodDecl() || SemaRef.getCurBlock()) { in AddKeywordsToConsumer()
4798 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4809 if (SemaRef.getCurFunction() && in AddKeywordsToConsumer()
4810 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddKeywordsToConsumer()
4815 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4831 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4834 if (SemaRef.getLangOpts().CPlusPlus11) in AddKeywordsToConsumer()
5240 FunctionCallFilterCCC::FunctionCallFilterCCC(Sema &SemaRef, unsigned NumArgs, in FunctionCallFilterCCC() argument
5244 CurContext(SemaRef.CurContext), MemberFn(ME) { in FunctionCallFilterCCC()
5246 WantFunctionLikeCasts = SemaRef.getLangOpts().CPlusPlus && in FunctionCallFilterCCC()