[PATCH] D31992: [clangd] Escape only necessary characters in JSON output

Joerg Sonnenberger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 16 13:01:06 PDT 2017


joerg added a comment.

Just to avoid any confusion: this should be the generic YAML escape routine in llvm/lib/Support, i.e. IMO we don't want to have separate YAML and JSON escape routines.
Effective, change YAMLParser.cpp line 697 to use \u and drop the whole UTF-8 handling part.


https://reviews.llvm.org/D31992





More information about the cfe-commits mailing list