]> granicus.if.org Git - clang/commit
[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)
commit1d201d005b01f73da728675feb1926fe6ac0e5dd
treea8b8caa6f72ec1b9ce575df6667a84b6dc5627cb
parent612390c43e74e99525c5d7c7b1fa080ec43aece2
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362363 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCodeComplete.cpp
test/CodeCompletion/ordinary-name-cxx11.cpp
test/CodeCompletion/ordinary-name.cpp