llvm-pretty icon indicating copy to clipboard operation
llvm-pretty copied to clipboard

Escaping special characters when printing string literals

Open kquick opened this issue 2 years ago • 0 comments

In the pretty-printing module (PP.hs) there are many locations that print a value by adding double quotes around the pretty-printed text (e.g. doubleQuotes $ text $ FIELDNAME ELEM). It is likely that many of those locations should be changed to using ppStringLiteral, which will also escape special characters (double-quotes, backslashes, non-ASCII).

kquick avatar Aug 07 '23 21:08 kquick