llvm-project/clang/lib/Format
Alexander Kornienko e2e0387f3e Keep track of indentation levels in static initializers for correct indentation with tabs.
Summary:
Store IndentationLevel in ParentState and use it instead of the
Line::Level when indening.
Also fixed incorrect indentation level calculation in formatFirstToken.

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek

Differential Revision: http://llvm-reviews.chandlerc.com/D1797

llvm-svn: 192563
2013-10-14 00:46:35 +00:00
..
BreakableToken.cpp Implemented tab usage only for indentation (http://llvm.org/PR17363) 2013-09-27 16:14:22 +00:00
BreakableToken.h Implemented tab usage only for indentation (http://llvm.org/PR17363) 2013-09-27 16:14:22 +00:00
CMakeLists.txt clang-format: Add column layout formatting for braced lists 2013-08-22 15:00:41 +00:00
ContinuationIndenter.cpp Keep track of indentation levels in static initializers for correct indentation with tabs. 2013-10-14 00:46:35 +00:00
ContinuationIndenter.h Keep track of indentation levels in static initializers for correct indentation with tabs. 2013-10-14 00:46:35 +00:00
Encoding.h Handle zero-width and double-width characters in string literals and comments. 2013-09-05 14:08:34 +00:00
Format.cpp Keep track of indentation levels in static initializers for correct indentation with tabs. 2013-10-14 00:46:35 +00:00
FormatToken.cpp Support formatting of preprocessor branches. 2013-10-11 21:25:45 +00:00
FormatToken.h Support formatting of preprocessor branches. 2013-10-11 21:25:45 +00:00
Makefile
TokenAnnotator.cpp clang-format: No space in "<::" in C++11 mode. 2013-10-12 05:16:06 +00:00
TokenAnnotator.h clang-format: Don't accidentally move tokens into preprocessor directive. 2013-09-17 09:52:48 +00:00
UnwrappedLineParser.cpp Automatically munch semicolons after blocks. 2013-10-12 22:46:56 +00:00
UnwrappedLineParser.h Automatically munch semicolons after blocks. 2013-10-12 22:46:56 +00:00
WhitespaceManager.cpp Support formatting of preprocessor branches. 2013-10-11 21:25:45 +00:00
WhitespaceManager.h Support formatting of preprocessor branches. 2013-10-11 21:25:45 +00:00