[PATCH] D84233: [lit] Escape ANSI control character in xunit output
Julian Lettner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 10:18:34 PDT 2020
yln added inline comments.
================
Comment at: llvm/utils/lit/lit/reports.py:76
+ # Note: In XML 1.1 only \0 is illegal (https://www.w3.org/TR/xml11/#charsets)
+ escape_dict = {chr(c): '\\x' + hex(c)[2:] for c in range(32) if chr(c) not in ('\t', '\n', '\r')}
+ try:
----------------
Should this be a global to avoid building the dict on every call to this function?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84233/new/
https://reviews.llvm.org/D84233
More information about the llvm-commits
mailing list