]> granicus.if.org Git - clang/commit
Implemented tab usage only for indentation (http://llvm.org/PR17363)
authorAlexander Kornienko <alexfh@google.com>
Fri, 27 Sep 2013 16:14:22 +0000 (16:14 +0000)
committerAlexander Kornienko <alexfh@google.com>
Fri, 27 Sep 2013 16:14:22 +0000 (16:14 +0000)
commit3d9ffcf3aa0ed84fa297e3c461bb84e48221aa2d
tree25eb08f63c440b4bf017af1fdfb0db8890057af6
parenta53d7a0259ff88f78ba8ecac7d0cb3ea96302b1d
Implemented tab usage only for indentation (http://llvm.org/PR17363)

Summary:
Changed UseTab to be a enum with three options: Never, Always,
ForIndentation (true/false are still supported when reading .clang-format).
IndentLevel should currently be propagated correctly for all tokens, except for
block comments. Please take a look at the general idea before I start dealing
with block comments.

Reviewers: klimek, djasper

Reviewed By: klimek

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

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