[llvm] Fix test failure if CLANG_VENDOR contains spaces (PR #81017)
Yi Kong via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 14:31:30 PST 2024
https://github.com/kongy updated https://github.com/llvm/llvm-project/pull/81017
>From 0ce8a46eb71a5210eb0fa1493b30819bc576a0d4 Mon Sep 17 00:00:00 2001
From: Yi Kong <yikong at google.com>
Date: Thu, 8 Feb 2024 01:48:57 +0800
Subject: [PATCH] Fix test failure if CLANG_VENDOR contains spaces
---
llvm/utils/UpdateTestChecks/common.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 0fe0dfc506b05..75c6e43855633 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -1701,7 +1701,7 @@ def add(var):
METADATA_FILTERS = [
(
- r"(?<=\")(\w+ )?(\w+ version )[\d.]+(?:[^\" ]*)(?: \([^)]+\))?",
+ r"(?<=\")(.+ )?(\w+ version )[\d.]+(?:[^\" ]*)(?: \([^)]+\))?",
r"{{.*}}\2{{.*}}",
), # preface with glob also, to capture optional CLANG_VENDOR
(r'(!DIFile\(filename: ".+", directory: )".+"', r"\1{{.*}}"),
More information about the llvm-commits
mailing list