[ParseableInterfaces] Re-escape multi-line strings in attribute messages

Previously, we would print multi-line string literals with single quotes, which were not re-parseable. Instead, re-escape their contents and print them out escaped.
This commit is contained in:
Harlan Haskins
2019-01-30 17:24:48 -08:00
parent e9d81e1533
commit a61d1f6476
3 changed files with 22 additions and 2 deletions

View File

@@ -207,6 +207,8 @@ public:
return *this;
}
void printEscapedStringLiteral(StringRef str);
void printName(Identifier Name,
PrintNameContext Context = PrintNameContext::Normal);