]> granicus.if.org Git - clang/commit
clang-format: Fix formatting of nested blocks after comment.
authorDaniel Jasper <djasper@google.com>
Sun, 20 Oct 2013 17:28:32 +0000 (17:28 +0000)
committerDaniel Jasper <djasper@google.com>
Sun, 20 Oct 2013 17:28:32 +0000 (17:28 +0000)
commit15eef85d4f918834ab83cfb941663463b573d6bf
tree4d6cb701f531a0ceef6597d0b70f23ab4c09d787
parentb3c887dcb70220eced72935725cd94d7e8325912
clang-format: Fix formatting of nested blocks after comment.

Before:
  DEBUG({ // Comment that used to confuse clang-format.
  fdafas();
  });
Before:
  DEBUG({ // Comments are now fine.
    fdafas();
  });

This fixed llvm.org/PR17619.

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