]> granicus.if.org Git - clang/commit
[clang-format] Fix shortening blocks in macros causing merged next line
authorKrasimir Georgiev <krasimir@google.com>
Fri, 19 Jan 2018 16:12:37 +0000 (16:12 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Fri, 19 Jan 2018 16:12:37 +0000 (16:12 +0000)
commitce000e5010562b3bcf2ba60e3f40709cde3b6a70
tree607027d0b951ac94002173508151d9ef73a438d4
parent3e53723a4808739b8cc707cd0c60c7d0e7d67080
[clang-format] Fix shortening blocks in macros causing merged next line

Summary:
This patch addresses bug 36002, where a combination of options causes the line
following a short block in macro to be merged with that macro.

Reviewers: bkramer

Reviewed By: bkramer

Subscribers: klimek, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322954 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/UnwrappedLineFormatter.cpp
unittests/Format/FormatTest.cpp