]> granicus.if.org Git - clang/commit
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)
commit729a743b317d877df3978e88a4a247d2edbf2090
tree11c14637dd8eb2e47b0a5a1c9005ce696bb7918d
parenta28fc067e3ee8eb84368530e878ce094f39651d3
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.

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