mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 19:01:05 +01:00
Clean up a few details of lex yaml printing (#4845)
- Escape dumped token strings (what got me here) - Change the quoting from backticks to quotes - Also add a `FormatEscaped` helper function for this, updating other `.write_escaped` uses
This commit is contained in:
@@ -27,9 +27,7 @@ static auto GenerateCppIncludesHeaderCode(
|
||||
std::string code;
|
||||
llvm::raw_string_ostream code_stream(code);
|
||||
for (const auto& [path, _] : imports) {
|
||||
code_stream << "#include \"";
|
||||
code_stream.write_escaped(path);
|
||||
code_stream << "\"\n";
|
||||
code_stream << "#include \"" << FormatEscaped(path) << "\"\n";
|
||||
}
|
||||
return code;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user