]> granicus.if.org Git - clang/commit
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)
commitebbe2eca322eb1de3a89d63e019869a56db24183
treefb24ff4afa68854cd473a51adac8fe65201bca3e
parent6944c5a9cc8c8f527dd6b82700bf3294e0a57cf8
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()

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