Skip to content

[test] lit.cfg: Wrap all substitutions with capture group refs in SubstituteCaptures #81764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

AnthonyLatsis
Copy link
Collaborator

@AnthonyLatsis AnthonyLatsis commented May 24, 2025

Since llvm/llvm-project#103042, backslashes in substitutions are consistently escaped on all platforms before feeding the substitutions to the regex engine. Make sure all substitutions containing capture group references are wrapped in SubstituteCaptures to suppress this behavior once main is rebranched.

@AnthonyLatsis AnthonyLatsis requested a review from bnbarham May 24, 2025 20:55
@AnthonyLatsis AnthonyLatsis changed the title [test] lit.cfg: Use SubstituteCaptures whenever the replacement has… [test] lit.cfg: Wrap all substitutions with capture group refs in SubstituteCaptures May 24, 2025
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test

…bstituteCaptures`

Since llvm/llvm-project#103042, backslashes in
substitutions are consistently escaped on all platforms before feeding
the substitutions to the regex engine. Make sure all substitutions
containing capture group references are wrapped in `SubstituteCaptures`
to suppress this behavior once main is rebranched.
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please test

@AnthonyLatsis AnthonyLatsis merged commit 0520206 into swiftlang:main May 27, 2025
5 checks passed
@AnthonyLatsis AnthonyLatsis deleted the rebranch-lit branch May 27, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants