[CodeCompletion] Enable signature help when initializing class/struct/union members.
authorKadir Cetinkaya <kadircet@google.com>
Tue, 11 Sep 2018 15:02:18 +0000 (15:02 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Tue, 11 Sep 2018 15:02:18 +0000 (15:02 +0000)
commit84774c3ae3df8c71e0beffaf8553ac79f179fea5
treed133c0734d7f80b3bdacfa2e16120708b4a228dc
parent98e4a5ca110e2e24ceb5d67873f935f8c82166bb
[CodeCompletion] Enable signature help when initializing class/struct/union members.

Summary:
Factors out member decleration gathering and uses it in parsing to call signature
help. Doesn't support signature help for base class constructors, the code was too
coupled with diagnostic handling, but still can be factored out but just needs
more afford.

Reviewers: sammccall, ilya-biryukov, ioeric

Reviewed By: ilya-biryukov

Subscribers: cfe-commits

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

llvm-svn: 341949
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CodeCompletion/ctor-initializer.cpp