]> granicus.if.org Git - clang/commit
Align comments to surrounding unformatted comments.
authorDaniel Jasper <djasper@google.com>
Fri, 22 Mar 2013 16:25:51 +0000 (16:25 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 22 Mar 2013 16:25:51 +0000 (16:25 +0000)
commitc363dbb204b6c77b67dfed030436643947b37cbd
treeaab1eaab38760ea4f89372155d4319a3c614eb24
parent92e44d911c748f2ef0d578bbf7b0703fb2ed4d9c
Align comments to surrounding unformatted comments.

Before:
int a; // not formatted
// formatting this line only

After:
int a; // not formatted
       // formatting this line only

This makes clang-format stable independent of whether the whole
file or single lines are formatted in most cases.

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