[llvm] 4488ee2 - [UTC] Generalize version regex
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 5 07:16:09 PDT 2023
Author: Nikita Popov
Date: 2023-07-05T16:15:47+02:00
New Revision: 4488ee259064532dda24024a7e96037fe9a3c0d9
URL: https://github.com/llvm/llvm-project/commit/4488ee259064532dda24024a7e96037fe9a3c0d9
DIFF: https://github.com/llvm/llvm-project/commit/4488ee259064532dda24024a7e96037fe9a3c0d9.diff
LOG: [UTC] Generalize version regex
The suffix for the git revision may not be present (or may not be
a git revision).
Added:
Modified:
llvm/utils/UpdateTestChecks/common.py
Removed:
################################################################################
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index e2f4a14b48db94..7f89b21c317ba3 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -1573,7 +1573,7 @@ def add(var):
# The capture group is kept as is, followed by a {{.*}} glob
METADATA_FILTERS = [
- r"(\w+ version )[\d.]+ \([\w.:/@-]+\.git \w+\)",
+ r"(\w+ version )[\d.]+(?: \([^)]+\))?",
r'(!DIFile\(filename: ".+", directory: )".+"',
]
METADATA_FILTERS_RE = [re.compile(s) for s in METADATA_FILTERS]
More information about the llvm-commits
mailing list