Skip to content

Add support for raw identifiers.#887

Merged
grynspan merged 8 commits into
mainfrom
jgrynspan/842-raw-ids
Jan 8, 2025
Merged

Add support for raw identifiers.#887
grynspan merged 8 commits into
mainfrom
jgrynspan/842-raw-ids

Conversation

@grynspan

@grynspan grynspan commented Jan 3, 2025

Copy link
Copy Markdown
Contributor

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

grynspan commented Jan 3, 2025

Copy link
Copy Markdown
Contributor Author

@allevato, would you mind reviewing please?

Comment thread Sources/Testing/Parameterization/TypeInfo.swift Outdated
@grynspan

grynspan commented Jan 4, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

Comment thread Sources/Testing/Parameterization/TypeInfo.swift Outdated
Comment thread Tests/TestingTests/TypeInfoTests.swift
@grynspan

grynspan commented Jan 6, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@allevato allevato left a comment

Copy link
Copy Markdown
Member

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

grynspan commented Jan 6, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

1 similar comment
@grynspan

grynspan commented Jan 6, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

Comment thread Sources/TestingMacros/Support/DiagnosticMessage.swift Outdated
Comment thread Tests/TestingTests/MiscellaneousTests.swift
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

grynspan commented Jan 8, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

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

grynspan commented Jan 8, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@grynspan grynspan requested a review from stmontgomery January 8, 2025 00:16
@grynspan

grynspan commented Jan 8, 2025

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@grynspan grynspan merged commit 4005676 into main Jan 8, 2025
@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