Home | History | Annotate | Download | only in Sema

Lines Matching refs:SemaRef

1474 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) {
1478 if (SemaRef.getLangOpts().ModulesLocalVisibility) {
1479 DeclModule = SemaRef.getOwningModule(D);
1490 (SemaRef.isModuleVisible(DeclModule) ||
1491 SemaRef.hasVisibleMergedDefinition(D)))
1504 ? isVisible(SemaRef, cast<NamedDecl>(DC))
1505 : SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC))) {
1506 if (SemaRef.ActiveTemplateInstantiations.empty() &&
1508 !SemaRef.getLangOpts().ModulesLocalVisibility) {
1519 llvm::DenseSet<Module*> &LookupModules = SemaRef.getLookupModules();
1524 DeclModule = SemaRef.getOwningModule(D);
1562 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D) {
1563 assert(!LookupResult::isVisible(SemaRef, D) && "not in slow case");
1570 if (LookupResult::isVisible(SemaRef, ND))
3674 static void LookupPotentialTypoResult(Sema &SemaRef,
3686 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) {
3693 if (!LookupResult::isVisible(SemaRef, *DI))
3704 if (!LookupResult::isVisible(SemaRef, *DI))
3705 VisibleDecl = findAcceptableDecl(SemaRef, *DI);
3783 if (!LookupResult::isVisible(SemaRef, ND) && Name != Typo &&
3784 !findAcceptableDecl(SemaRef, ND))
3817 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED);
3838 checkCorrectionVisibility(SemaRef, Correction);
3849 std::string CorrectionStr = Correction.getAsString(SemaRef.getLangOpts());
3857 if (CorrectionStr < RI->getAsString(SemaRef.getLangOpts()))
3886 auto &Types = SemaRef.getASTContext().getTypes();
3933 SemaRef, Result, Name, S, TempSS, TempMemberContext,
3966 checkCorrectionVisibility(SemaRef, Candidate);
4011 if (!SemaRef.LookupQualifiedName(Result, Ctx))
4020 std::string NewQualified = TC.getAsString(SemaRef.getLangOpts());
4023 SS->getScopeRep()->print(OldOStream, SemaRef.getPrintingPolicy());
4033 if (SemaRef.CheckMemberAccess(TC.getCorrectionRange().getBegin(),
4181 static void LookupPotentialTypoResult(Sema &SemaRef,
4210 SemaRef.LookupQualifiedName(Res, MemberContext);
4214 SemaRef.LookupParsedName(Res, S, SS, /*AllowBuiltinCreation=*/false,
4219 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) {
4234 static void AddKeywordsToConsumer(Sema &SemaRef,
4263 if (SemaRef.getLangOpts().C99)
4265 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus)
4267 else if (SemaRef.getLangOpts().C99)
4270 if (SemaRef.getLangOpts().CPlusPlus) {
4275 if (SemaRef.getLangOpts().CPlusPlus11) {
4284 if (SemaRef.getLangOpts().GNUMode)
4295 if (CCC.WantCXXNamedCasts && SemaRef.getLangOpts().CPlusPlus) {
4304 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) {
4309 if (SemaRef.getLangOpts().CPlusPlus) {
4317 if (isa<CXXMethodDecl>(SemaRef.CurContext) &&
4318 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance())
4321 if (SemaRef.getLangOpts().CPlusPlus11) {
4327 if (SemaRef.getLangOpts().C11) {
4335 if (SemaRef.getCurFunctionOrMethodDecl() || SemaRef.getCurBlock()) {
4343 if (SemaRef.getLangOpts().CPlusPlus) {
4354 SemaRef.getCurFunction()->SwitchStack.empty()) {
4359 if (SemaRef.getLangOpts().CPlusPlus) {
4375 if (SemaRef.getLangOpts().CPlusPlus) {
4378 if (SemaRef.getLangOpts().CPlusPlus11)
4775 FunctionCallFilterCCC::FunctionCallFilterCCC(Sema &SemaRef, unsigned NumArgs,
4779 CurContext(SemaRef.CurContext), MemberFn(ME) {
4781 WantFunctionLikeCasts = SemaRef.getLangOpts().CPlusPlus && NumArgs == 1;