[clang][CodeComplete] Propogate printing policy to FunctionDecl
authorKadir Cetinkaya <kadircet@google.com>
Mon, 13 Jan 2020 08:00:19 +0000 (09:00 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 20 Jan 2020 11:20:20 +0000 (12:20 +0100)
commit1f946ee2faba5395a04a081fbe561e3d91aa2b3d
treea14df3e3730c0d97e18060ca1c9b6360c0a8c70e
parent122443a950521c5d99a0d0479daf57fbd1de2ac2
[clang][CodeComplete] Propogate printing policy to FunctionDecl

Summary:
Printing policy was not propogated to functiondecls when creating a
completion string which resulted in canonical template parameters like
`foo<type-parameter-0-0>`. This patch propogates printing policy to those as
well.

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

Reviewers: ilya-biryukov

Subscribers: jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72715
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/test/CodeCompletion/ctor-signature.cpp [new file with mode: 0644]