Just unifying all that copy-pasted code.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks good. I wonder if the escaping of recognized escape sequences should go in LLVM's StringExtras. I have no strong opinion because other than the YAML parser (where this is part of much more complex escaping) I couldn't find a good use case in LLVM after a quick search.
Comment Actions
Well, Clang is also doing string escaping from what I can see, but it's very specific to the way C/C++ is escaping strings, so it doesn't seem logical to move that to LLVM (and adding a Clang dependency on Core also doesn't seem like a great idea). I'll leave that open for follow-up PRs :)