Clang import; character literal '\'
This commit is contained in:
parent
4c778e0999
commit
f667abacf6
|
@ -460,6 +460,8 @@ Token *clangimport::AstNode::createTokens(TokenList *tokenList)
|
|||
return addtoken(tokenList, "\'\\n\'");
|
||||
if (c == '\t')
|
||||
return addtoken(tokenList, "\'\\t\'");
|
||||
if (c == '\\')
|
||||
return addtoken(tokenList, "\'\\\\\'");
|
||||
if (c < ' ' || c >= 0x80) {
|
||||
std::ostringstream hex;
|
||||
hex << std::hex << ((c>>4) & 0xf) << (c&0xf);
|
||||
|
|
Loading…
Reference in New Issue