]> granicus.if.org Git - clang/commitdiff
Switch a couple of users of LangOpts::GNUMode to the more appropriate LangOpts::GNUKe...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 24 May 2018 21:51:52 +0000 (21:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 24 May 2018 21:51:52 +0000 (21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333233 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaCodeComplete.cpp
lib/Sema/SemaLookup.cpp

index 9d8ff7a4c85a31f3c20db4be1d9c06d98064aa45..f08159b79f3363e003354106b46435f3f6fdc988 100644 (file)
@@ -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"));
index 1e57d39e95fe7b7e9c6627b47bcf0866baa453e3..d2d4171c9371828e8855ec076ff3afe7f7225ec3 100644 (file)
@@ -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[] = {