]> granicus.if.org Git - clang/commit
Correctly indent with tabs when whitespace starts from the column not divisible by...
authorAlexander Kornienko <alexfh@google.com>
Fri, 27 Sep 2013 09:45:40 +0000 (09:45 +0000)
committerAlexander Kornienko <alexfh@google.com>
Fri, 27 Sep 2013 09:45:40 +0000 (09:45 +0000)
commitacf8e90b22cfea07ba2edeaa5101160eda8dc82c
tree19b8bf17b393abf3d75b7a63dc42afbf356e206f
parent6b3ff8c4caaa6782289a780e096fe56ad6434bb7
Correctly indent with tabs when whitespace starts from the column not divisible by TabWidth.

Summary:
The width of the first inserted tab character depends on the initial
column, so we need to handle the first tab in a special manner.

Reviewers: klimek, djasper

Reviewed By: klimek

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

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