[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:32 PDT 2024


================
@@ -69,8 +87,8 @@ def main(argv):
                 fileToCat = open(filename, "rb")
                 contents = fileToCat.read()
 
-            if show_nonprinting:
-                contents = convertToCaretAndMNotation(contents)
+            if True in fields(enabled_options):
+                contents = convertTextNotation(contents, enabled_options)
----------------
ilovepi wrote:

What happens if I add a field to `Options` that isn't either `show_nonprinting` or `show_ends`?

https://github.com/llvm/llvm-project/pull/102061


More information about the llvm-commits mailing list