Skip to content

[5.9][PreCheck] Filter out macro declarations from result set #68288

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
Sep 2, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Sep 1, 2023

Cherry-pick of #68254


  • Explanation:

Move logic from ConstraintGenerator::visitOverloadedDeclRefExpr
to pre-check to avoid including macro declarations referenced without #.
This means that pre-checking would synthesize TypeExpr in situations
when there is a type reference that is shadowed by a stdlib macro.

Resolves: #67815
Resolves: rdar://114796811

(cherry picked from commit cf257aa)

Move logic from `ConstraintGenerator::visitOverloadedDeclRefExpr`
to pre-check to avoid including macro declarations referenced
without `#`. This means that pre-checking would synthesize
`TypeExpr` in situations when there is a type reference that
is shadowed by a stdlib macro.

Resolves: swiftlang#67815
Resolves: rdar://114796811
(cherry picked from commit cf257aa)
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels Sep 1, 2023
@xedin xedin requested a review from hborla September 1, 2023 23:27
@xedin xedin requested a review from a team as a code owner September 1, 2023 23:27
@xedin
Copy link
Contributor Author

xedin commented Sep 1, 2023

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Sep 2, 2023

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Sep 2, 2023

@swift-ci please build toolchain macOS

@xedin xedin merged commit f42cd3b into swiftlang:release/5.9 Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants