[PATCH] Implemented tab usage only for indentation (http://llvm.org/PR17363)

Alexander Kornienko alexfh at google.com
Fri Sep 27 04:36:44 PDT 2013


Hi klimek, djasper,

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.

http://llvm-reviews.chandlerc.com/D1770

Files:
  include/clang/Format/Format.h
  lib/Format/BreakableToken.cpp
  lib/Format/ContinuationIndenter.cpp
  lib/Format/Format.cpp
  lib/Format/WhitespaceManager.cpp
  lib/Format/WhitespaceManager.h
  unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1770.1.patch
Type: text/x-patch
Size: 19657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130927/cca9883f/attachment.bin>


More information about the cfe-commits mailing list