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)
commitdb4c21f9945283f2e8d29c7a8a898512ebf37b52
treec97127d07f6704390ca9dd17aba464bdf12ed645
parent36c671e2c7b2eeec111cc7625b36d08f15ce4dd2
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

llvm-svn: 191497
clang/lib/Format/WhitespaceManager.cpp
clang/lib/Format/WhitespaceManager.h
clang/unittests/Format/FormatTest.cpp