summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-06-05 14:09:10 +0000
committerAlexander Kornienko <alexfh@google.com>2013-06-05 14:09:10 +0000
commit00895106f9ed602af67984ec4d225a0cdc8c12af (patch)
tree071d223dd44a5c81a04ce01eebd1129bc00a8571 /lib/CodeGen/CodeGenModule.h
parent2aae5ba15d07e9aa37ff9b03ad0024c0707068f5 (diff)
downloadclang-00895106f9ed602af67984ec4d225a0cdc8c12af.tar.gz
clang-00895106f9ed602af67984ec4d225a0cdc8c12af.tar.bz2
clang-00895106f9ed602af67984ec4d225a0cdc8c12af.tar.xz
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions