]> granicus.if.org Git - clang/commit
clang-format: Last line in incomplete block is indented incorrectly
authorMarianne Mailhot-Sarrasin <marianne.mailhot.sarrasin@gmail.com>
Thu, 14 Apr 2016 14:56:49 +0000 (14:56 +0000)
committerMarianne Mailhot-Sarrasin <marianne.mailhot.sarrasin@gmail.com>
Thu, 14 Apr 2016 14:56:49 +0000 (14:56 +0000)
commit463ccc6b430b33c924e1d942390c78ee48b2381f
treefdf43d38aa4acc4808a11213cd9c69445b4a9933
parent08708dba6769ab21832b9c4a0e8e1d5df2b7377a
clang-format: Last line in incomplete block is indented incorrectly

Indentation of the last line was reset to the initial indentation of the block when reaching EOF.

Patch by Maxime Beaulieu

Differential Revision: http://reviews.llvm.org/D19065

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