]> granicus.if.org Git - clang/commit
clang-format: Fix hanging nested blocks in macros.
authorDaniel Jasper <djasper@google.com>
Tue, 12 May 2015 10:16:02 +0000 (10:16 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 12 May 2015 10:16:02 +0000 (10:16 +0000)
commitea22a3f1331fbee7656ad9bb33fbc763c3627436
tree69efa19c6b06dff6121765c2520bb1fd9fd53669
parent54f26dc467fd641d935cce4abbcf262cf8ec2c8d
clang-format: Fix hanging nested blocks in macros.

Before:
  #define MACRO()                     \
    Debug(aaa, /* force line break */ \
          {                           \
      int i;                          \
      int j;                          \
          })

After:
  #define MACRO()                     \
    Debug(aaa, /* force line break */ \
          {                           \
            int i;                    \
            int j;                    \
          })

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