diff options
author | Marek Kurdej <marek.kurdej@gmail.com> | 2020-12-03 10:27:09 +0100 |
---|---|---|
committer | Marek Kurdej <marek.kurdej@gmail.com> | 2020-12-03 10:27:47 +0100 |
commit | 6627a3c2873fdf7ccba1a1573371079be48b36e8 (patch) | |
tree | 99ae86236b6df6943a46333c779ae4b3387b986a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 48f7ca187944c14f7b134336fc86e365de765d22 (diff) | |
download | llvm-6627a3c2873fdf7ccba1a1573371079be48b36e8.zip llvm-6627a3c2873fdf7ccba1a1573371079be48b36e8.tar.gz llvm-6627a3c2873fdf7ccba1a1573371079be48b36e8.tar.bz2 |
[c++2b] Add option -std=c++2b to enable support for potential C++2b features.
Reviewed By: rsmith
Differential Revision: https://reviews.llvm.org/D92547
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 1c63ce6..e31f6aa 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2388,6 +2388,7 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK, Opts.CPlusPlus14 = Std.isCPlusPlus14(); Opts.CPlusPlus17 = Std.isCPlusPlus17(); Opts.CPlusPlus20 = Std.isCPlusPlus20(); + Opts.CPlusPlus2b = Std.isCPlusPlus2b(); Opts.Digraphs = Std.hasDigraphs(); Opts.GNUMode = Std.isGNUMode(); Opts.GNUInline = !Opts.C99 && !Opts.CPlusPlus; |