diff options
| author | Kadir Cetinkaya <kadircet@google.com> | 2020-01-22 14:10:01 +0100 |
|---|---|---|
| committer | Kadir Cetinkaya <kadircet@google.com> | 2020-01-23 15:32:46 +0100 |
| commit | 24364cd12bbfa2e58fa74bfb49d4ea85c64c0951 (patch) | |
| tree | 16aed6a2610fd4897973253841163d39254e2d66 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | 9187073f3e051903b4c1f86e5fce0e1c819a1c34 (diff) | |
[clang][CodeComplete] Make completion work after initializer lists
Summary:
CodeCompletion was not being triggered after successfully parsed
initializer lists, e.g.
```cpp
void foo(int, bool);
void bar() {
foo({1}^, false);
}
```
CodeCompletion would suggest the function foo as an overload candidate up until
the point marked with `^` but after that point we do not trigger signature help
since parsing succeeds.
This patch handles that case by failing in parsing expression lists whenever we
see a codecompletion token, in addition to getting an invalid subexpression.
Reviewers: sammccall
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D73177
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
