clang-format: Fix label-in-if statement in macros where it is actually used.
authorDaniel Jasper <djasper@google.com>
Wed, 6 Apr 2016 16:41:39 +0000 (16:41 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 6 Apr 2016 16:41:39 +0000 (16:41 +0000)
commit2cce7b728b88d846713f8f1e69f9cc58623024c2
tree66cd63894e9abb4a43ed1438fed0c00349ef54ca
parent3768f7005d442fb7ff40e1324d2ca9630d255f35
clang-format: Fix label-in-if statement in macros where it is actually used.

Before:
  #define A \
    if (a)  \
    label:  \
    f()

After:
  #define A \
    if (a)  \
    label:  \
      f()

llvm-svn: 265557
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp