[clang] [llvm] Reland "[Utils] Add new --update-tests flag to llvm-lit" (PR #153821)

Min-Yih Hsu via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 15 09:41:30 PDT 2025


================
@@ -0,0 +1,39 @@
+import shutil
+
+
+def get_source_and_target(a, b):
+    """
+    Try to figure out which file is the test output and which is the reference.
+    """
+    expected_suffix = ".expected"
----------------
mshockwave wrote:

please document these heuristics somewhere.

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


More information about the cfe-commits mailing list