зеркало из https://github.com/microsoft/clang-1.git
stop claiming unicode escape sequences are too long in strings, because they never are
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
79f0a8262b
Коммит
5393e213f1
|
@ -281,8 +281,6 @@ static void EncodeUCNEscape(const char *&ThisTokBuf, const char *ThisTokEnd,
|
||||||
ResultBuf += 2;
|
ResultBuf += 2;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// FIXME: We shouldn't print a diagnostic for UTF-16 mode.
|
|
||||||
if (Diags) Diags->Report(Loc, diag::warn_ucn_escape_too_large);
|
|
||||||
|
|
||||||
// Convert to UTF16.
|
// Convert to UTF16.
|
||||||
UcnVal -= 0x10000;
|
UcnVal -= 0x10000;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче