Move generic isPrint and columnWidth implementations to a separate header/source...
authorAlexander Kornienko <alexfh@google.com>
Wed, 4 Sep 2013 16:00:12 +0000 (16:00 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 4 Sep 2013 16:00:12 +0000 (16:00 +0000)
commit280e5eef43ecf2279ab78f132922920ed7ce7952
tree1bb943229dfe4665f53171bc73b7a6898d24f338
parent9127334dade7fa36cb5cb999fc116ceaa4f52ac9
Move generic isPrint and columnWidth implementations to a separate header/source to allow using both generic and system-dependent versions on win32.

Summary:
This is needed so we can use generic columnWidthUTF8 in clang-format on
win32 simultaneously with a separate system-dependent implementations of
isPrint/columnWidth in TextDiagnostic.cpp to avoid attempts to print Unicode
characters using narrow-character interfaces (which is not supported on Windows,
and we'll have to figure out how to handle this).

Reviewers: jordan_rose

Reviewed By: jordan_rose

CC: llvm-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D1559

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189952 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Unicode.h [new file with mode: 0644]
lib/Support/CMakeLists.txt
lib/Support/Locale.cpp
lib/Support/LocaleGeneric.inc [deleted file]
lib/Support/LocaleWindows.inc [deleted file]
lib/Support/LocaleXlocale.inc [deleted file]
lib/Support/Unicode.cpp [new file with mode: 0644]
unittests/Support/CMakeLists.txt
unittests/Support/LocaleTest.cpp [deleted file]
unittests/Support/UnicodeTest.cpp [new file with mode: 0644]