From 31aebdd8919b7bef4bbfe1d7988708215a8b953f Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Tue, 5 Dec 2023 12:20:12 -0500 Subject: Include LLVM_VERSION_SUFFIX in the Clang version string. (#74469) This causes current mainline to now report "18.0.0git" instead of "18.0.0". Fixes #53825 --- llvm/utils/UpdateTestChecks/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/utils/UpdateTestChecks/common.py') diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py index 5c3775e..0fe0dfc 100644 --- a/llvm/utils/UpdateTestChecks/common.py +++ b/llvm/utils/UpdateTestChecks/common.py @@ -1701,7 +1701,7 @@ def filter_globals_according_to_preference( METADATA_FILTERS = [ ( - r"(?<=\")(\w+ )?(\w+ version )[\d.]+(?: \([^)]+\))?", + r"(?<=\")(\w+ )?(\w+ version )[\d.]+(?:[^\" ]*)(?: \([^)]+\))?", r"{{.*}}\2{{.*}}", ), # preface with glob also, to capture optional CLANG_VENDOR (r'(!DIFile\(filename: ".+", directory: )".+"', r"\1{{.*}}"), -- cgit v1.1