[CodeComplete] Add a bit more whitespace to completed patterns
authorIlya Biryukov <ibiryukov@google.com>
Mon, 3 Jun 2019 08:34:25 +0000 (08:34 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 3 Jun 2019 08:34:25 +0000 (08:34 +0000)
commit1a44584588b7e54856b9f16a68251800bda805e7
tree52dd348386f9b781fdaae84c85f7abd5612bd6aa
parent209adba440537a0803ec298f3c8c9af2344d9020
[CodeComplete] Add a bit more whitespace to completed patterns

Summary:
E.g. we now turn `while(<#cond#>){` into `while (<#cond#>) {`

This slightly improves the final output. Should not affect clients that
format the result on their own.

Reviewers: gribozavr

Reviewed By: gribozavr

Subscribers: jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D62616

llvm-svn: 362363
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/test/CodeCompletion/ordinary-name-cxx11.cpp
clang/test/CodeCompletion/ordinary-name.cpp