forked from OSchip/llvm-project
Switch a couple of users of LangOpts::GNUMode to the more appropriate LangOpts::GNUKeywords.
llvm-svn: 333233
This commit is contained in:
parent
06e0fd3bc1
commit
7b301e2410
|
@ -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"));
|
||||
|
|
|
@ -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[] = {
|
||||
|
|
Loading…
Reference in New Issue