]> granicus.if.org Git - clang/commit
[clang-format] Keep level of comment before an empty line
authorKrasimir Georgiev <krasimir@google.com>
Wed, 12 Jul 2017 15:21:43 +0000 (15:21 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Wed, 12 Jul 2017 15:21:43 +0000 (15:21 +0000)
commit059cc9230ce3d0c64b94b96723ed47ed2a53042e
tree9819c6dd838360da1313f1558e176440ffa3b2a2
parent62dd545c92378c52cf04667f5432c837380eb239
[clang-format] Keep level of comment before an empty line

Summary:
This patch fixes bug https://bugs.llvm.org/show_bug.cgi?id=3313: a comment line
was aligned with the next #ifdef even in the presence of an empty line between
them.

Reviewers: djasper, klimek

Reviewed By: djasper

Subscribers: klimek, cfe-commits

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

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