]> granicus.if.org Git - clang/commit
Do not consider comments when adjusting to local indent style.
authorDaniel Jasper <djasper@google.com>
Wed, 20 Mar 2013 14:31:47 +0000 (14:31 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 20 Mar 2013 14:31:47 +0000 (14:31 +0000)
commit83a90e5e6525acdb8cc4778ed102cd3952559f15
tree53bf1913a455eb106888dd29c6e996308476ad05
parent64f092865c01c72ecb9e380432e241f3af55c249
Do not consider comments when adjusting to local indent style.

Before (when only reformatting "int b"):
int a; // comment
       // comment
       int b;

After:
int a; // comment
       // comment
int b;

This also fixes llvm.org/PR15433.

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