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)
commit66dc2ec30b11a111ec9b95b3e0739b7b7b84857a
tree19ef4206d7f0960946c1b47c7ee482fe24a867de
parent9f94dff7a687432dafcb0fda94fbea018caa6cec
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.

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