aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2018-08-30 13:08:03 +0000
committerIlya Biryukov <ibiryukov@google.com>2018-08-30 13:08:03 +0000
commit2fab235316e6e35300e632fe1cf1312aeaa7d68c (patch)
treeae5f9a0cb223d820b2a972f9893f79324f45e614 /clang/lib/Parse/ParseDecl.cpp
parent9c16d809d2f602557657dc4f33cbeba92fb4fbd2 (diff)
downloadllvm-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/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 04c0286..5d780de 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -2304,7 +2304,7 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(
auto ConstructorCompleter = [&, ThisVarDecl] {
Actions.CodeCompleteConstructor(
getCurScope(), ThisVarDecl->getType()->getCanonicalTypeInternal(),
- ThisDecl->getLocation(), Exprs);
+ ThisDecl->getLocation(), Exprs, T.getOpenLocation());
};
if (ThisVarDecl) {
// ParseExpressionList can sometimes succeed even when ThisDecl is not