Lines Matching defs:SemaRef
287 IDNS = getIDNS(LookupKind, SemaRef.getLangOpts().CPlusPlus,
299 SemaRef.DeclareGlobalNewDelete();
386 QualType T = SemaRef.Context.getTypeDeclType(TD);
387 if (!UniqueTypes.insert(SemaRef.Context.getCanonicalType(T))) {
3158 Sema &SemaRef;
3161 explicit TypoCorrectionConsumer(Sema &SemaRef, IdentifierInfo *Typo)
3163 SemaRef(SemaRef) { }
3244 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, Distance);
3257 std::string CorrectionStr = Correction.getAsString(SemaRef.getLangOpts());
3265 if (CorrectionStr < RI->getAsString(SemaRef.getLangOpts()))
3474 static void LookupPotentialTypoResult(Sema &SemaRef,
3501 SemaRef.LookupQualifiedName(Res, MemberContext);
3505 SemaRef.LookupParsedName(Res, S, SS, /*AllowBuiltinCreation=*/false,
3510 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) {
3525 static void AddKeywordsToConsumer(Sema &SemaRef,
3554 if (SemaRef.getLangOpts().C99)
3556 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus)
3558 else if (SemaRef.getLangOpts().C99)
3561 if (SemaRef.getLangOpts().CPlusPlus) {
3566 if (SemaRef.getLangOpts().CPlusPlus11) {
3575 if (SemaRef.getLangOpts().GNUMode)
3579 if (CCC.WantCXXNamedCasts && SemaRef.getLangOpts().CPlusPlus) {
3588 if (SemaRef.getLangOpts().Bool || SemaRef.getLangOpts().CPlusPlus) {
3593 if (SemaRef.getLangOpts().CPlusPlus) {
3601 if (isa<CXXMethodDecl>(SemaRef.CurContext) &&
3602 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance())
3605 if (SemaRef.getLangOpts().CPlusPlus11) {
3611 if (SemaRef.getLangOpts().C11) {
3619 if (SemaRef.getCurFunctionOrMethodDecl() || SemaRef.getCurBlock()) {
3627 if (SemaRef.getLangOpts().CPlusPlus) {
3638 if (!SemaRef.getCurFunction()->SwitchStack.empty()) {
3643 if (SemaRef.getLangOpts().CPlusPlus) {
3659 if (SemaRef.getLangOpts().CPlusPlus) {
3662 if (SemaRef.getLangOpts().CPlusPlus11)