Skip to content

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