aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2020-03-24 13:43:25 +0100
committerHaojian Wu <hokein.wu@gmail.com>2020-03-25 09:00:48 +0100
commit0788acbccbec094903a3425ffe5a98f8d55cbd64 (patch)
treeab6578d42fdd72ee8939497bc845e113b31623fb /clang/lib/Frontend/CompilerInvocation.cpp
parent1e65209e045598c3ca5833331215606a02267229 (diff)
downloadllvm-0788acbccbec094903a3425ffe5a98f8d55cbd64.zip
llvm-0788acbccbec094903a3425ffe5a98f8d55cbd64.tar.gz
llvm-0788acbccbec094903a3425ffe5a98f8d55cbd64.tar.bz2
[AST] Build recovery expressions by default for C++.
Update the existing tests. Reviewers: sammccall Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76696
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index dc5e932..08e0700 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -2909,7 +2909,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
if (Args.hasArg(OPT_fconcepts_ts))
Diags.Report(diag::warn_fe_concepts_ts_flag);
Opts.RecoveryAST =
- Args.hasFlag(OPT_frecovery_ast, OPT_fno_recovery_ast, false);
+ Args.hasFlag(OPT_frecovery_ast, OPT_fno_recovery_ast, Opts.CPlusPlus);
Opts.HeinousExtensions = Args.hasArg(OPT_fheinous_gnu_extensions);
Opts.AccessControl = !Args.hasArg(OPT_fno_access_control);
Opts.ElideConstructors = !Args.hasArg(OPT_fno_elide_constructors);