C++1y is now C++14!
Changes diagnostic options, language standard options, diagnostic identifiers, diagnostic wording to use c++14 instead of c++1y. It also modifies related test cases to use the updated diagnostic wording. llvm-svn: 215982
This commit is contained in:
@@ -1139,7 +1139,7 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK,
|
||||
Opts.C11 = Std.isC11();
|
||||
Opts.CPlusPlus = Std.isCPlusPlus();
|
||||
Opts.CPlusPlus11 = Std.isCPlusPlus11();
|
||||
Opts.CPlusPlus1y = Std.isCPlusPlus1y();
|
||||
Opts.CPlusPlus14 = Std.isCPlusPlus14();
|
||||
Opts.CPlusPlus1z = Std.isCPlusPlus1z();
|
||||
Opts.Digraphs = Std.hasDigraphs();
|
||||
Opts.GNUMode = Std.isGNUMode();
|
||||
@@ -1186,8 +1186,8 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK,
|
||||
|
||||
Opts.DollarIdents = !Opts.AsmPreprocessor;
|
||||
|
||||
// C++1y onwards has sized global deallocation functions.
|
||||
Opts.SizedDeallocation = Opts.CPlusPlus1y;
|
||||
// C++14 onwards has sized global deallocation functions.
|
||||
Opts.SizedDeallocation = Opts.CPlusPlus14;
|
||||
}
|
||||
|
||||
/// Attempt to parse a visibility value out of the given argument.
|
||||
|
||||
Reference in New Issue
Block a user