llvm-project/clang/lib/Format
Manuel Klimek 31c85921b2 Fixes various problems with accounting for tabs in the original code.
We now count the original token's column directly when lexing the
tokens, where we already have all knowledge about where lines start.

Before this patch, formatting:
 void f() {
 \tg();
 \th();
 }
would incorrectly count the \t's as 1 character if only the line
containing h() was reformatted, and thus indent h() at offset 1.

llvm-svn: 189585
2013-08-29 15:21:40 +00:00
..
BreakableToken.cpp Revert r187935 "Support for double width characters." 2013-08-08 02:19:56 +00:00
BreakableToken.h Reformat clang-format's source files after r185822 and others. 2013-07-08 14:34:09 +00:00
CMakeLists.txt clang-format: Add column layout formatting for braced lists 2013-08-22 15:00:41 +00:00
ContinuationIndenter.cpp clang-format: Improve token breaking behavior. 2013-08-28 10:03:58 +00:00
ContinuationIndenter.h clang-format: Format segments of builder-type calls one per line. 2013-08-27 14:24:43 +00:00
Encoding.h Reformat clang-format's source files after r185822 and others. 2013-07-08 14:34:09 +00:00
Format.cpp Fixes various problems with accounting for tabs in the original code. 2013-08-29 15:21:40 +00:00
FormatToken.cpp clang-format: Fix bug in column layout. 2013-08-27 08:43:47 +00:00
FormatToken.h Fixes various problems with accounting for tabs in the original code. 2013-08-29 15:21:40 +00:00
Makefile
TokenAnnotator.cpp clang-format: Don't insert space in __has_include 2013-08-28 08:24:04 +00:00
TokenAnnotator.h clang-format: Revamp builder-type call formatting. 2013-08-27 11:09:05 +00:00
UnwrappedLineParser.cpp clang-format: Fix corner case in ObjC interface definitions. 2013-08-28 08:04:23 +00:00
UnwrappedLineParser.h clang-format: Add more options to namespace indentation. 2013-07-31 23:16:02 +00:00
WhitespaceManager.cpp clang-format: Fix infinite loop in macro special case. 2013-08-28 09:07:32 +00:00
WhitespaceManager.h Reformat clang-format's source files after r185822 and others. 2013-07-08 14:34:09 +00:00