diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2020-12-14 09:49:55 +0100 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2020-12-14 09:59:56 +0100 |
commit | e2fc85c69b3f7aad89b5b59eca537bec96a24682 (patch) | |
tree | e8c61b14c9c6be4a1c980f4cd7703633f958fe95 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 4e2e785ddd35c421a4df9453f17b8317d6b62b2c (diff) | |
download | llvm-e2fc85c69b3f7aad89b5b59eca537bec96a24682.zip llvm-e2fc85c69b3f7aad89b5b59eca537bec96a24682.tar.gz llvm-e2fc85c69b3f7aad89b5b59eca537bec96a24682.tar.bz2 |
[clang][cli] Better defaults for MarshallingInfoString
Depends on D84018
Reviewed By: Bigcheese
Original patch by Daniel Grumberg.
Differential Revision: https://reviews.llvm.org/D84185
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 836f34c..3add57c 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -272,6 +272,15 @@ static void denormalizeSimpleEnumJoined(SmallVectorImpl<const char *> &Args, "the tablegen option description"); } +static Optional<std::string> normalizeString(OptSpecifier Opt, int TableIndex, + const ArgList &Args, + DiagnosticsEngine &Diags) { + auto *Arg = Args.getLastArg(Opt); + if (!Arg) + return None; + return std::string(Arg->getValue()); +} + static void denormalizeString(SmallVectorImpl<const char *> &Args, const char *Spelling, CompilerInvocation::StringAllocator SA, @@ -498,8 +507,6 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args, .Case("false", false) .Default(false); - Opts.DumpExplodedGraphTo = - std::string(Args.getLastArgValue(OPT_analyzer_dump_egraph)); Opts.AnalyzeSpecificFunction = std::string(Args.getLastArgValue(OPT_analyze_function)); Opts.maxBlockVisitOnPath = |