]> granicus.if.org Git - clang/commit
[Bash-autocompletion] Add support for static analyzer flags
authorYuka Takahashi <yukatkh@gmail.com>
Wed, 23 Aug 2017 13:39:47 +0000 (13:39 +0000)
committerYuka Takahashi <yukatkh@gmail.com>
Wed, 23 Aug 2017 13:39:47 +0000 (13:39 +0000)
commitecfb2759da6ef7888552ecd02346a8a05a362fc8
tree6c94e6cb8943a094f5ca583eeb41dac1ca76fb0a
parentba1ec3c54a66286fe964b2f79286e706e45e7b9e
[Bash-autocompletion] Add support for static analyzer flags

Summary:
This is a patch for clang autocomplete feature.

It will collect values which -analyzer-checker takes, which is defined in
clang/StaticAnalyzer/Checkers/Checkers.inc, dynamically.
First, from ValuesCode class in Options.td, TableGen will generate C++
code in Options.inc. Options.inc will be included in DriverOptions.cpp, and
calls OptTable's addValues function. addValues function will add second
argument to Option's Values class. Values contains string like "foo,bar,.."
which is handed to Values class
in OptTable.

Reviewers: v.g.vassilev, teemperor, ruiu

Subscribers: hiraditya, cfe-commits

Differential Revision: https://reviews.llvm.org/D36782

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311552 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
lib/Driver/DriverOptions.cpp
test/Driver/autocomplete.c