[llvm] d6c2cbb - Fix test failure if CLANG_VENDOR contains spaces (#81017)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 14:31:38 PST 2024
Author: Yi Kong
Date: 2024-02-08T07:31:34+09:00
New Revision: d6c2cbbc6513bd412b34f3bf70e21b5a363b2fd9
URL: https://github.com/llvm/llvm-project/commit/d6c2cbbc6513bd412b34f3bf70e21b5a363b2fd9
DIFF: https://github.com/llvm/llvm-project/commit/d6c2cbbc6513bd412b34f3bf70e21b5a363b2fd9.diff
LOG: Fix test failure if CLANG_VENDOR contains spaces (#81017)
Added:
Modified:
llvm/utils/UpdateTestChecks/common.py
Removed:
################################################################################
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 0fe0dfc506b059..75c6e438556337 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