Skip to content

[clang][ObjectiveC] Fix Parsing the :: Optional Scope Specifier (#119908) #9782

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

Conversation

qiongsiwu
Copy link

The parser hangs when processing types/variables prefixed by :: as an optional scope specifier. For example,

- (instancetype)init:(::A *) foo;

The parser should not hang, and it should emit an error. This PR implements the error check.

rdar://140885078
(cherry picked from commit 1418018)

…vm#119908)

The parser hangs when processing types/variables prefixed by `::` as an
optional scope specifier. For example,
```
- (instancetype)init:(::A *) foo;
```

The parser should not hang, and it should emit an error. This PR
implements the error check.

rdar://140885078
(cherry picked from commit 1418018)
@qiongsiwu qiongsiwu requested a review from a team as a code owner December 20, 2024 19:12
@qiongsiwu
Copy link
Author

@swift-ci Please smoke test

1 similar comment
@qiongsiwu
Copy link
Author

@swift-ci Please smoke test

@qiongsiwu
Copy link
Author

@swift-ci Please smoke test macOS platform

@qiongsiwu
Copy link
Author

@swift-ci Please smoke test Linux platform

@qiongsiwu
Copy link
Author

@swift-ci Please smoke test

@qiongsiwu
Copy link
Author

@swift-ci please test

@qiongsiwu
Copy link
Author

@fredriss could you help me merge this PR? Thanks so much! FYI @cyndyishida

@qiongsiwu
Copy link
Author

Hi Fred @fredriss! Shall I modify the PR description using this template? Could you help me land this PR? Thanks!

@fredriss fredriss merged commit 876cb85 into swiftlang:swift/release/6.1 Jan 8, 2025
3 checks passed
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