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
Showing
- include/clang/Format/Format.h 13 additions, 3 deletionsinclude/clang/Format/Format.h
- lib/Format/BreakableToken.cpp 23 additions, 30 deletionslib/Format/BreakableToken.cpp
- lib/Format/BreakableToken.h 21 additions, 18 deletionslib/Format/BreakableToken.h
- lib/Format/ContinuationIndenter.cpp 15 additions, 12 deletionslib/Format/ContinuationIndenter.cpp
- lib/Format/Format.cpp 24 additions, 10 deletionslib/Format/Format.cpp
- lib/Format/WhitespaceManager.cpp 35 additions, 15 deletionslib/Format/WhitespaceManager.cpp
- lib/Format/WhitespaceManager.h 12 additions, 5 deletionslib/Format/WhitespaceManager.h
- unittests/Format/FormatTest.cpp 85 additions, 3 deletionsunittests/Format/FormatTest.cpp
Loading
Please register or sign in to comment