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

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 4 16:16:06 PST 2018


NoQ added a comment.

Ugh. We broke backwards compatibility when an invalid `-analyzer-config` is specified but `-analyze` isn't specified. Yes, people are accidentally relying on that :/ :/ :/

In this case the driver doesn't know that it needs to add `analyzer-config-compatibility-mode=true` (or, even better, outright ignore all analyzer options) but the frontend doesn't know that it doesn't need to parse them.


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