[compiler-rt] [Sanitizer] Use % patterns in report paths (PR #141820)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Thu May 29 09:57:50 PDT 2025


================
@@ -96,12 +96,75 @@ static void RecursiveCreateParentDirs(char *path) {
   }
 }
 
+/// Parse the report path \p pattern and copy the parsed path to \p dest.
+///
+/// * `%%` becomes `%`
+/// * `%H` expands to the environment variable `HOME`
+/// * `%t` expands to the environment variable `TMPDIR`
+/// * `%p` expands to the process ID (PID)
----------------
ellishg wrote:

That's true. I mainly implemented this for completeness compared to PGO

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


More information about the llvm-commits mailing list