]> granicus.if.org Git - clang/commit
clang-format: Improve clang-format's detection about comment binding.
authorDaniel Jasper <djasper@google.com>
Fri, 8 Nov 2013 23:31:14 +0000 (23:31 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 8 Nov 2013 23:31:14 +0000 (23:31 +0000)
commit0ce1c9ade71a2ed56dafddcd5d95e4e75fd91255
tree19a23dc5bb56bd296a1c53ee8010cfce9c6a89e1
parentc4fb7ef24f3586fd88dd548cd3789125109e7b1f
clang-format: Improve clang-format's detection about comment binding.

Before, existing code in the form of:

  int a; // this is a.
  // This is
  // b.
  int b;

Got turned into:

  int a; // this is a.
         // This is
  // b.
  int b;

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