[clangd] Do not insert parentheses when completing a using declaration
authorIlya Biryukov <ibiryukov@google.com>
Mon, 28 Oct 2019 08:34:21 +0000 (09:34 +0100)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 28 Oct 2019 08:45:10 +0000 (09:45 +0100)
commitd9971d0b2e34a6a5ca182089d019c9f079f528af
tree7add4c16f89c14915ea04807e2a030580402eaeb
parent7f19dd1ebff0456feaf18437bb231856b6e49b5c
[clangd] Do not insert parentheses when completing a using declaration

Summary:
Would be nice to also fix this in clang, but that looks like more work
if we want to preserve signatures in informative chunks.

Fixes https://github.com/clangd/clangd/issues/118

Reviewers: kadircet

Reviewed By: kadircet

Subscribers: merge_guards_bot, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D69382
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/CodeCompleteConsumer.h
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Parse/ParseExprCXX.cpp
clang/lib/Sema/SemaCodeComplete.cpp