diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2018-08-30 13:08:03 +0000 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2018-08-30 13:08:03 +0000 |
commit | 2fab235316e6e35300e632fe1cf1312aeaa7d68c (patch) | |
tree | ae5f9a0cb223d820b2a972f9893f79324f45e614 /clang/tools/libclang/CIndexCodeCompletion.cpp | |
parent | 9c16d809d2f602557657dc4f33cbeba92fb4fbd2 (diff) | |
download | llvm-2fab235316e6e35300e632fe1cf1312aeaa7d68c.zip llvm-2fab235316e6e35300e632fe1cf1312aeaa7d68c.tar.gz llvm-2fab235316e6e35300e632fe1cf1312aeaa7d68c.tar.bz2 |
[CodeComplete] Report location of opening parens for signature help
Summary: Used in clangd.
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: ioeric, kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D51436
llvm-svn: 341063
Diffstat (limited to 'clang/tools/libclang/CIndexCodeCompletion.cpp')
-rw-r--r-- | clang/tools/libclang/CIndexCodeCompletion.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/tools/libclang/CIndexCodeCompletion.cpp b/clang/tools/libclang/CIndexCodeCompletion.cpp index f49f976..766745d 100644 --- a/clang/tools/libclang/CIndexCodeCompletion.cpp +++ b/clang/tools/libclang/CIndexCodeCompletion.cpp @@ -653,7 +653,8 @@ namespace { void ProcessOverloadCandidates(Sema &S, unsigned CurrentArg, OverloadCandidate *Candidates, - unsigned NumCandidates) override { + unsigned NumCandidates, + SourceLocation OpenParLoc) override { StoredResults.reserve(StoredResults.size() + NumCandidates); for (unsigned I = 0; I != NumCandidates; ++I) { CodeCompletionString *StoredCompletion |