[PATCH] D53280: [analyzer] Emit an error for invalid -analyzer-config inputs

Kristóf Umann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 4 16:46:29 PST 2018


Szelethus marked an inline comment as done.
Szelethus added inline comments.


================
Comment at: lib/Driver/ToolChains/Clang.cpp:3307-3309
 void Clang::ConstructJob(Compilation &C, const JobAction &JA,
                          const InputInfo &Output, const InputInfoList &Inputs,
                          const ArgList &Args, const char *LinkingOutput) const {
----------------
Hmmm. If we just moved the `CmdArgs.push_back("-analyzer-config-compatibility-mode=true");` line to this function (which actually invokes `RenderAnalyzerOptions`), that would solve the issue, wouldn't it? Or somewhere in an even more general driver function.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D53280/new/

https://reviews.llvm.org/D53280





More information about the cfe-commits mailing list