diff options
author | Faisal Vali <faisalv@yahoo.com> | 2017-07-16 00:23:04 +0000 |
---|---|---|
committer | Faisal Vali <faisalv@yahoo.com> | 2017-07-16 00:23:04 +0000 |
commit | 5f475b989c8b2ffd35dccbdc77a64ac36601e727 (patch) | |
tree | 2c97660410ccd7c02d4e6e75c0b08106fbba6752 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 50648af623295e526b2943cc9ce7aa2b3db5a6ce (diff) | |
download | bcm5719-llvm-5f475b989c8b2ffd35dccbdc77a64ac36601e727.tar.gz bcm5719-llvm-5f475b989c8b2ffd35dccbdc77a64ac36601e727.zip |
[c++2a] Add option -std=c++2a to enable support for potential/transitional C++2a features
- as usual C++2a implies all the C++'s that came before it.
Thank you Aaron for the feedback here: https://reviews.llvm.org/D35454
llvm-svn: 308118
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 00f6b9b46f0..b2c14554a4b 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1683,6 +1683,7 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, Opts.CPlusPlus11 = Std.isCPlusPlus11(); Opts.CPlusPlus14 = Std.isCPlusPlus14(); Opts.CPlusPlus1z = Std.isCPlusPlus1z(); + Opts.CPlusPlus2a = Std.isCPlusPlus2a(); Opts.Digraphs = Std.hasDigraphs(); Opts.GNUMode = Std.isGNUMode(); Opts.GNUInline = !Opts.C99 && !Opts.CPlusPlus; |