[llvm] update_test_checks: Relax DIFile filename checks (PR #135692)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 04:54:04 PDT 2025
================
@@ -2358,7 +2358,7 @@ def add(var):
r"(?<=\")(.+ )?(\w+ version )[\d.]+(?:[^\" ]*)(?: \([^)]+\))?",
r"{{.*}}\2{{.*}}",
), # preface with glob also, to capture optional CLANG_VENDOR
- (r'(!DIFile\(filename: ".+", directory: )".+"', r"\1{{.*}}"),
+ (r'(!DIFile\(filename: ")(.+/)?([^/]+", directory: )".+"', r"\1{{.*}}\3{{.*}}"),
----------------
OCHyams wrote:
Do we get file paths in the filename field? (off the top of my head I can't remember - I assume that's why you've added the `{{.*}}` prefix to file base names here?)
https://github.com/llvm/llvm-project/pull/135692
More information about the llvm-commits
mailing list