Lines Matching defs:SemaRef
288 IDNS = getIDNS(LookupKind, SemaRef.getLangOpts().CPlusPlus,
299 SemaRef.DeclareGlobalNewDelete();
310 if (!SemaRef.Context.BuiltinInfo.isPredefinedLibFunction(BuiltinID))
403 QualType T = SemaRef.Context.getTypeDeclType(TD);
404 if (!UniqueTypes.insert(SemaRef.Context.getCanonicalType(T))) {
1231 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) {
1232 assert(D->isHidden() && !SemaRef.ActiveTemplateInstantiations.empty() &&
1238 llvm::DenseSet<Module*> &LookupModules = SemaRef.getLookupModules();
1268 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D) {
1269 assert(!LookupResult::isVisible(SemaRef, D) && "not in slow case");
1273 if (LookupResult::isVisible(SemaRef, ND))
1282 return findAcceptableDecl(SemaRef, D);
3274 static void LookupPotentialTypoResult(Sema &SemaRef,
3334 explicit TypoCorrectionConsumer(Sema &SemaRef,
3341 : Typo(TypoName.getName().getAsIdentifierInfo()), SemaRef(SemaRef), S(S),
3343 Result(SemaRef, TypoName, LookupKind),
3344 Namespaces(SemaRef.Context, SemaRef.CurContext, SS),
3461 Sema &SemaRef;
3490 if (!LookupResult::isVisible(SemaRef, ND) && Name != Typo &&
3491 !findAcceptableDecl(SemaRef, ND))
3524 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, ED);
3551 std::string CorrectionStr = Correction.getAsString(SemaRef.getLangOpts());
3559 if (CorrectionStr < RI->getAsString(SemaRef.getLangOpts()))
3585 for (const auto *TI : SemaRef.getASTContext().types()) {
3624 LookupPotentialTypoResult(SemaRef, Result, Name, S, TempSS, TempMemberContext,
3699 if (!SemaRef.LookupQualifiedName(Result, Ctx))
3708 std::string NewQualified = TC.getAsString(SemaRef.getLangOpts());
3711 SS->getScopeRep()->print(OldOStream, SemaRef.getPrintingPolicy());
3721 if (SemaRef.CheckMemberAccess(TC.getCorrectionRange().getBegin(),
3889 static void LookupPotentialTypoResult(Sema &SemaRef,
3918 SemaRef.LookupQualifiedName(Res, MemberContext);
3922 SemaRef.LookupParsedName(Res, S, SS, /*AllowBuiltinCreation=*/false,
3927 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) {
3942 static void AddKeywordsToConsumer(Sema &SemaRef,
3971 if (SemaRef.getLangOpts().C99)
3973 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus)
3975 else if (SemaRef.getLangOpts().C99)
3978 if (SemaRef.getLangOpts().CPlusPlus) {
3983 if (SemaRef.getLangOpts().CPlusPlus11) {
3992 if (SemaRef.getLangOpts().GNUMode)
3996 if (CCC.WantCXXNamedCasts && SemaRef.getLangOpts().CPlusPlus) {
4005 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) {
4010 if (SemaRef.getLangOpts().CPlusPlus) {
4018 if (isa<CXXMethodDecl>(SemaRef.CurContext) &&
4019 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance())
4022 if (SemaRef.getLangOpts().CPlusPlus11) {
4028 if (SemaRef.getLangOpts().C11) {
4036 if (SemaRef.getCurFunctionOrMethodDecl() || SemaRef.getCurBlock()) {
4044 if (SemaRef.getLangOpts().CPlusPlus) {
4055 if (!SemaRef.getCurFunction()->SwitchStack.empty()) {
4060 if (SemaRef.getLangOpts().CPlusPlus) {
4076 if (SemaRef.getLangOpts().CPlusPlus) {
4079 if (SemaRef.getLangOpts().CPlusPlus11)
4088 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) {
4095 if (!LookupResult::isVisible(SemaRef, *DI))
4106 if (!LookupResult::isVisible(SemaRef, *DI))
4107 VisibleDecl = findAcceptableDecl(SemaRef, *DI);
4480 FunctionCallFilterCCC::FunctionCallFilterCCC(Sema &SemaRef, unsigned NumArgs,
4484 CurContext(SemaRef.CurContext), MemberFn(ME) {
4485 WantTypeSpecifiers = SemaRef.getLangOpts().CPlusPlus;