llvm-project/clang/lib/Format
Alexander Kornienko ffcc010767 UTF-8 support for clang-format.
Summary:
Detect if the file is valid UTF-8, and if this is the case, count code
points instead of just using number of bytes in all (hopefully) places, where
number of columns is needed. In particular, use the new
FormatToken.CodePointCount instead of TokenLength where appropriate.
Changed BreakableToken implementations to respect utf-8 character boundaries
when in utf-8 mode.

Reviewers: klimek, djasper

Reviewed By: djasper

CC: cfe-commits, rsmith, gribozavr

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

llvm-svn: 183312
2013-06-05 14:09:10 +00:00
..
BreakableToken.cpp UTF-8 support for clang-format. 2013-06-05 14:09:10 +00:00
BreakableToken.h UTF-8 support for clang-format. 2013-06-05 14:09:10 +00:00
CMakeLists.txt Unified token breaking logic for strings and block comments. 2013-04-15 14:28:00 +00:00
Encoding.h UTF-8 support for clang-format. 2013-06-05 14:09:10 +00:00
Format.cpp UTF-8 support for clang-format. 2013-06-05 14:09:10 +00:00
FormatToken.h UTF-8 support for clang-format. 2013-06-05 14:09:10 +00:00
Makefile
TokenAnnotator.cpp UTF-8 support for clang-format. 2013-06-05 14:09:10 +00:00
TokenAnnotator.h UTF-8 support for clang-format. 2013-06-05 14:09:10 +00:00
UnwrappedLineParser.cpp Improve clang-format's error recovery. 2013-05-31 14:56:29 +00:00
UnwrappedLineParser.h Moved FormatToken to a separate header. 2013-06-03 16:45:03 +00:00
WhitespaceManager.cpp The second step in the token refactoring. 2013-05-29 14:47:47 +00:00
WhitespaceManager.h The second step in the token refactoring. 2013-05-29 14:47:47 +00:00