"tests/pipelines/vscode:/vscode.git/clone" did not exist on "727434c206f6c22b746e460293035a1324f0bc13"
Unverified Commit 4f6d0733 authored by Rosen Penev's avatar Rosen Penev Committed by GitHub
Browse files

[clang-tidy] use raw strings for easier readability (#882)



Found with modernize-raw-string-literal
Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
parent f05947ae
...@@ -366,15 +366,15 @@ bool WriteChar(ostream_wrapper& out, char ch) { ...@@ -366,15 +366,15 @@ bool WriteChar(ostream_wrapper& out, char ch) {
if (('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z')) { if (('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z')) {
out << ch; out << ch;
} else if (ch == '\"') { } else if (ch == '\"') {
out << "\"\\\"\""; out << R"("\"")";
} else if (ch == '\t') { } else if (ch == '\t') {
out << "\"\\t\""; out << R"("\t")";
} else if (ch == '\n') { } else if (ch == '\n') {
out << "\"\\n\""; out << R"("\n")";
} else if (ch == '\b') { } else if (ch == '\b') {
out << "\"\\b\""; out << R"("\b")";
} else if (ch == '\\') { } else if (ch == '\\') {
out << "\"\\\\\""; out << R"("\\")";
} else if (0x20 <= ch && ch <= 0x7e) { } else if (0x20 <= ch && ch <= 0x7e) {
out << "\"" << ch << "\""; out << "\"" << ch << "\"";
} else { } else {
......
...@@ -105,7 +105,7 @@ std::string Escape(Stream& in) { ...@@ -105,7 +105,7 @@ std::string Escape(Stream& in) {
case 'e': case 'e':
return "\x1B"; return "\x1B";
case ' ': case ' ':
return "\x20"; return R"( )";
case '\"': case '\"':
return "\""; return "\"";
case '\'': case '\'':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment