]> granicus.if.org Git - clang/commit
clang-format: Don't remove newline if macro ends in access specifier.
authorDaniel Jasper <djasper@google.com>
Mon, 9 Mar 2015 08:13:55 +0000 (08:13 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 9 Mar 2015 08:13:55 +0000 (08:13 +0000)
commite4be8358e243f5dabe2b969140a00f4534a6644f
treecca581ce8936b768b9245bb5c2ab8919a9105d9a
parent8880714d42677267f7aee51a630476fcfb822e1a
clang-format: Don't remove newline if macro ends in access specifier.

I.e.:

  #define A public:

  // The new line before this line would be removed.
  int a;

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