SMDiagnostic: don't emit ranges if there are /any/ multibyte characters.
authorJordan Rose <jordan_rose@apple.com>
Fri, 11 Jan 2013 02:37:55 +0000 (02:37 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 11 Jan 2013 02:37:55 +0000 (02:37 +0000)
commit9b1e854698d036cae6ab1d6576f709bec6fce082
tree46040a0b3ff94db2dede08842f337b71f380ce9f
parenta7aec400a7014edba1eeb53c582d3ab47178fe8d
SMDiagnostic: don't emit ranges if there are /any/ multibyte characters.

Right now, only OS X has a way to determine the column width of a string
(PR14910). Until we have a good way to deal with this, we just won't
print carets, source ranges, or fixits for SMDiagnostic if the source line
has multibyte characters in it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172164 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/SourceMgr.cpp