]> granicus.if.org Git - clang/commit
Calculate and store ColumnWidth instead of CodePointCount in FormatTokens.
authorAlexander Kornienko <alexfh@google.com>
Tue, 10 Sep 2013 09:38:25 +0000 (09:38 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 10 Sep 2013 09:38:25 +0000 (09:38 +0000)
commit83a7dcdf5fce1bdf74ce985419d77a41a51abfa2
tree4247d1859bca0c2aae0a14ca4491d32b880fe5d2
parent3f46e6f45907b7004e2c8dfec1a84877d6d262d6
Calculate and store ColumnWidth instead of CodePointCount in FormatTokens.

Summary:
This fixes various issues with mixed tabs and spaces handling, e.g.
when realigning block comments.

Reviewers: klimek, djasper

Reviewed By: djasper

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1608

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