[libcxx-commits] [libcxx] [libcxx] Add local %T substitution (PR #160026)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Sep 29 07:06:31 PDT 2025


================
@@ -92,6 +92,7 @@ def parseScript(test, preamble):
     #       errors, which doesn't make sense for clang-verify tests because we may want to check
     #       for specific warning diagnostics.
     _checkBaseSubstitutions(substitutions)
+    substitutions.append(("%T", tmpDir))
----------------
ldionne wrote:

I would suggest introducing this as `%{temp}` and documenting it officially as a substitution added by the libc++ testing format instead. Once `%T` is removed in Lit, this substitution will become seemingly random for anybody who isn't familiar with the current `%T` substitution provided by Lit.

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


More information about the libcxx-commits mailing list