[llvm] [llvm-lit] Adding -e option to lit's built-in cat command (PR #102061)
Paul Kirth via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 15:46:31 PDT 2024
================
@@ -1,29 +1,45 @@
import getopt
import sys
+from dataclasses import dataclass, fields
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
-def convertToCaretAndMNotation(data):
+ at dataclass
+class Options:
+ show_ends: bool
+ show_nonprinting: bool
----------------
ilovepi wrote:
Maybe some comment/documentation on this classes intended usage? probably at least worth doing for the fields.
https://github.com/llvm/llvm-project/pull/102061
More information about the llvm-commits
mailing list