Skip to content

Add support for raw identifiers. #887

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 8 commits into from
Jan 8, 2025
Merged

Add support for raw identifiers. #887

merged 8 commits into from
Jan 8, 2025

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Jan 3, 2025

This PR adds support for the raw identifiers feature introduced with SE-0451.

Resolves #842.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

@grynspan grynspan added enhancement New feature or request tools integration 🛠️ Integration of swift-testing into tools/IDEs labels Jan 3, 2025
@grynspan grynspan added this to the Swift 6.x milestone Jan 3, 2025
@grynspan grynspan self-assigned this Jan 3, 2025
@grynspan
Copy link
Contributor Author

grynspan commented Jan 3, 2025

@allevato, would you mind reviewing please?

@grynspan
Copy link
Contributor Author

grynspan commented Jan 4, 2025

@swift-ci test

@grynspan
Copy link
Contributor Author

grynspan commented Jan 6, 2025

@swift-ci test

Copy link
Member

@allevato allevato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks! Excited to use this once the feature itself lands.

@grynspan
Copy link
Contributor Author

grynspan commented Jan 6, 2025

@swift-ci test

1 similar comment
@grynspan
Copy link
Contributor Author

grynspan commented Jan 6, 2025

@swift-ci test

This PR adds support for the raw identifiers feature introduced with
[SE-0451](https://forums.swift.org/t/accepted-with-revision-se-0451-raw-identifiers/76387).

At this time, I _think_ I don't need to make any changes to our macro expansion
code for it to compile and run, however I may need to revisit later in order to
treat functions with raw identifiers as having "display names" and to synthesize
test IDs for them that are concise (CRC-32 to the rescue?) We'll cross that
bridge when we come to it, after the feature has landed in the toolchain.

Resolves #842.
@grynspan
Copy link
Contributor Author

grynspan commented Jan 8, 2025

@swift-ci test

@grynspan grynspan force-pushed the jgrynspan/842-raw-ids branch from db5c06a to 11ef9ff Compare January 8, 2025 00:16
@grynspan
Copy link
Contributor Author

grynspan commented Jan 8, 2025

@swift-ci test

@grynspan grynspan requested a review from stmontgomery January 8, 2025 00:16
@grynspan
Copy link
Contributor Author

grynspan commented Jan 8, 2025

@swift-ci test

@grynspan grynspan merged commit 4005676 into main Jan 8, 2025
3 checks passed
@grynspan grynspan deleted the jgrynspan/842-raw-ids branch January 8, 2025 22:54
@grynspan grynspan added the raw-identifiers 🧅 Support for raw identifiers label Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request raw-identifiers 🧅 Support for raw identifiers tools integration 🛠️ Integration of swift-testing into tools/IDEs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for raw identifiers
4 participants