Fix invalid formatting with spaces before trailing comments.
authorDaniel Jasper <djasper@google.com>
Mon, 11 Feb 2013 12:36:37 +0000 (12:36 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 11 Feb 2013 12:36:37 +0000 (12:36 +0000)
commiteef30490fd13fe4f460df5a18695215ddef2ace1
treee593d1a058faa118d9f0b37fa80243aea6e12b25
parent0c13795f68a3d2fe0bc31650260809ad8f160a3b
Fix invalid formatting with spaces before trailing comments.

In google style, trailing comments are separated by two spaces. This
patch fixes the counting of these spaces and prevents clang-format from
creating a line with 81 columns.

llvm-svn: 174879
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/TokenAnnotator.h
clang/unittests/Format/FormatTest.cpp