Lines Matching refs:SemaRef
91 Sema &SemaRef; member in __anon7874a3fe0111::UnqualUsingDirectiveSet
99 UnqualUsingDirectiveSet(Sema &SemaRef) : SemaRef(SemaRef) {} in UnqualUsingDirectiveSet() argument
118 if (SemaRef.isVisible(I)) in visitScopeChain()
158 if (SemaRef.isVisible(UD) && visited.insert(NS).second) { in addUsingDirectives()
1513 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { in isVisibleSlow() argument
1516 Module *DeclModule = SemaRef.getOwningModule(D); in isVisibleSlow()
1520 if (SemaRef.isModuleVisible(DeclModule, D->isModulePrivate())) in isVisibleSlow()
1544 (isa<FunctionDecl>(DC) && !SemaRef.getLangOpts().CPlusPlus)) in isVisibleSlow()
1545 VisibleWithinParent = isVisible(SemaRef, cast<NamedDecl>(DC)); in isVisibleSlow()
1551 if (SemaRef.hasMergedDefinitionInCurrentModule(cast<NamedDecl>(DC))) { in isVisibleSlow()
1558 VisibleWithinParent = SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC)); in isVisibleSlow()
1561 if (VisibleWithinParent && SemaRef.CodeSynthesisContexts.empty() && in isVisibleSlow()
1563 !SemaRef.getLangOpts().ModulesLocalVisibility) { in isVisibleSlow()
1656 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D, in findAcceptableDecl() argument
1658 assert(!LookupResult::isVisible(SemaRef, D) && "not in slow case"); in findAcceptableDecl()
1670 LookupResult::isVisible(SemaRef, ND)) in findAcceptableDecl()
3851 static void LookupPotentialTypoResult(Sema &SemaRef,
3863 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { in checkCorrectionVisibility() argument
3867 if (!LookupResult::isVisible(SemaRef, *DI)) in checkCorrectionVisibility()
3879 if (LookupResult::isVisible(SemaRef, *DI)) { in checkCorrectionVisibility()
3955 if (!LookupResult::isVisible(SemaRef, ND) && Name != Typo) in FoundDecl()
3988 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED); in addName()
4009 checkCorrectionVisibility(SemaRef, Correction); in addCorrection()
4020 std::string CorrectionStr = Correction.getAsString(SemaRef.getLangOpts()); in addCorrection()
4028 if (CorrectionStr < RI->getAsString(SemaRef.getLangOpts())) in addCorrection()
4057 auto &Types = SemaRef.getASTContext().getTypes(); in addNamespaces()
4104 LookupPotentialTypoResult(SemaRef, Result, Name, S, TempSS, TempMemberContext, in resolveCorrection()
4137 checkCorrectionVisibility(SemaRef, Candidate); in resolveCorrection()
4182 if (!SemaRef.LookupQualifiedName(Result, Ctx)) in performQualifiedLookups()
4191 std::string NewQualified = TC.getAsString(SemaRef.getLangOpts()); in performQualifiedLookups()
4194 SS->getScopeRep()->print(OldOStream, SemaRef.getPrintingPolicy()); in performQualifiedLookups()
4204 if (SemaRef.CheckMemberAccess(TC.getCorrectionRange().getBegin(), in performQualifiedLookups()
4347 static void LookupPotentialTypoResult(Sema &SemaRef, in LookupPotentialTypoResult() argument
4377 SemaRef.LookupQualifiedName(Res, MemberContext); in LookupPotentialTypoResult()
4381 SemaRef.LookupParsedName(Res, S, SS, /*AllowBuiltinCreation=*/false, in LookupPotentialTypoResult()
4386 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) { in LookupPotentialTypoResult()
4401 static void AddKeywordsToConsumer(Sema &SemaRef, in AddKeywordsToConsumer() argument
4430 if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer()
4432 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) in AddKeywordsToConsumer()
4434 else if (SemaRef.getLangOpts().C99) in AddKeywordsToConsumer()
4437 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4442 if (SemaRef.getLangOpts().CPlusPlus11) { in AddKeywordsToConsumer()
4451 if (SemaRef.getLangOpts().GNUKeywords) in AddKeywordsToConsumer()
4462 if (CCC.WantCXXNamedCasts && SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4471 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4476 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4484 if (isa<CXXMethodDecl>(SemaRef.CurContext) && in AddKeywordsToConsumer()
4485 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance()) in AddKeywordsToConsumer()
4488 if (SemaRef.getLangOpts().CPlusPlus11) { in AddKeywordsToConsumer()
4494 if (SemaRef.getLangOpts().C11) { in AddKeywordsToConsumer()
4502 if (SemaRef.getCurFunctionOrMethodDecl() || SemaRef.getCurBlock()) { in AddKeywordsToConsumer()
4510 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4521 if (SemaRef.getCurFunction() && in AddKeywordsToConsumer()
4522 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddKeywordsToConsumer()
4527 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4543 if (SemaRef.getLangOpts().CPlusPlus) { in AddKeywordsToConsumer()
4546 if (SemaRef.getLangOpts().CPlusPlus11) in AddKeywordsToConsumer()
4951 FunctionCallFilterCCC::FunctionCallFilterCCC(Sema &SemaRef, unsigned NumArgs, in FunctionCallFilterCCC() argument
4955 CurContext(SemaRef.CurContext), MemberFn(ME) { in FunctionCallFilterCCC()
4957 WantFunctionLikeCasts = SemaRef.getLangOpts().CPlusPlus && NumArgs == 1; in FunctionCallFilterCCC()