From: Richard Smith Date: Thu, 24 May 2018 21:51:52 +0000 (+0000) Subject: Switch a couple of users of LangOpts::GNUMode to the more appropriate LangOpts::GNUKe... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3211ce51c4b743a153105580c980dd4251b95edc;p=clang Switch a couple of users of LangOpts::GNUMode to the more appropriate LangOpts::GNUKeywords. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333233 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp index 9d8ff7a4c8..f08159b79f 100644 --- a/lib/Sema/SemaCodeComplete.cpp +++ b/lib/Sema/SemaCodeComplete.cpp @@ -1371,8 +1371,8 @@ static void AddTypeSpecifierResults(const LangOptions &LangOpts, } else Results.AddResult(Result("__auto_type", CCP_Type)); - // GNU extensions - if (LangOpts.GNUMode) { + // GNU keywords + if (LangOpts.GNUKeywords) { // FIXME: Enable when we actually support decimal floating point. // Results.AddResult(Result("_Decimal32")); // Results.AddResult(Result("_Decimal64")); diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index 1e57d39e95..d2d4171c93 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -4459,7 +4459,7 @@ static void AddKeywordsToConsumer(Sema &SemaRef, } } - if (SemaRef.getLangOpts().GNUMode) + if (SemaRef.getLangOpts().GNUKeywords) Consumer.addKeywordResult("typeof"); } else if (CCC.WantFunctionLikeCasts) { static const char *const CastableTypeSpecs[] = {