[PATCH] D57858: [analyzer] Add a new frontend flag to display all checker options

Kristóf Umann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun May 12 15:50:24 PDT 2019


Szelethus updated this revision to Diff 199188.
Szelethus added a comment.

- Make the educated observation that the code for formatted output is duplicated for `-analyzer-checker-help`, `-analyzer-config-help` and this patch, reuse it via the new static function `AnalyzerOptions::printFormattedEntry`.
- Remove the `USAGE` that suggested the use of the driver (did you mean to remove it entirely? Really, without reading test files, you'd never know how to use it)
- Hide certain options by default, implemented in a followup patch.


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

https://reviews.llvm.org/D57858

Files:
  include/clang/Driver/CC1Options.td
  include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
  include/clang/StaticAnalyzer/Frontend/CheckerRegistry.h
  include/clang/StaticAnalyzer/Frontend/FrontendActions.h
  lib/Frontend/CompilerInvocation.cpp
  lib/FrontendTool/ExecuteCompilerInvocation.cpp
  lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
  lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
  lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
  test/Analysis/analyzer-checker-option-help.c
  test/Analysis/analyzer-list-configs.c
  test/Analysis/checker-plugins.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57858.199188.patch
Type: text/x-patch
Size: 15729 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190512/33800c67/attachment-0001.bin>


More information about the cfe-commits mailing list