From f667abacf66109400e078adb3f573385fcb8002b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 10 Jan 2020 17:37:36 +0100 Subject: [PATCH] Clang import; character literal '\' --- lib/clangimport.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/clangimport.cpp b/lib/clangimport.cpp index f6eb8134d..495c62023 100644 --- a/lib/clangimport.cpp +++ b/lib/clangimport.cpp @@ -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);