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

Umann Kristóf via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 16 20:32:36 PST 2018


Szelethus updated this revision to Diff 174495.
Szelethus retitled this revision from "[analyzer] Emit a warning for unknown -analyzer-config options" to "[analyzer] Emit an error for invalid -analyzer-config inputs".
Szelethus set the repository for this revision to rC Clang.
Szelethus added a comment.
Herald added subscribers: gamesh411, mgrang, baloghadamsoftware.

- Added the discussed compatibility flag that's off by default, but is enabled by default by the driver.
- Now emitting errors instead of warnings.
- For the first time, introduce errors rather then asserts for invalid input.


Repository:
  rC Clang

https://reviews.llvm.org/D53280

Files:
  include/clang/Basic/DiagnosticDriverKinds.td
  include/clang/Driver/CC1Options.td
  include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
  lib/Driver/ToolChains/Clang.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/Analysis/invalid-analyzer-config-value.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53280.174495.patch
Type: text/x-patch
Size: 14412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181117/cbaa362b/attachment.bin>


More information about the cfe-commits mailing list