[include-fixer] Support finding headers for the symbol under cursor.
authorHaojian Wu <hokein@google.com>
Wed, 7 Sep 2016 16:34:35 +0000 (16:34 +0000)
committerHaojian Wu <hokein@google.com>
Wed, 7 Sep 2016 16:34:35 +0000 (16:34 +0000)
commitcd637012453bf35c9aacf7558138f80f13b2d629
tree6923f461478d3614382038b294c712923366c482
parentf2a02894c759c2ffb954e400c52a900327defb6d
[include-fixer] Support finding headers for the symbol under cursor.

Summary:
* Add a `query-symbol` option to query symbol without parsing the source file.
* Update Vim & Emacs integration scripts.

Reviewers: bkramer, massberg

Subscribers: cfe-commits

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

llvm-svn: 280824
clang-tools-extra/include-fixer/find-all-symbols/SymbolInfo.h
clang-tools-extra/include-fixer/tool/ClangIncludeFixer.cpp
clang-tools-extra/include-fixer/tool/clang-include-fixer.el
clang-tools-extra/include-fixer/tool/clang-include-fixer.py
clang-tools-extra/test/include-fixer/query_symbol.cpp [new file with mode: 0644]