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)
commitdcd5da1fd9352473a8b08c982780f6b14994316f
treebae21e60bc5bdfc1e3c86e88cb1b53ead5f4af3a
parent2d0cd4978737bdde886d70cb82d5ce8fb385bfa2
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.

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