[all-commits] [llvm/llvm-project] 141801: [clang][ObjectiveC] Fix Parsing the `::` Optional ...
Qiongsi Wu via All-commits
all-commits at lists.llvm.org
Fri Dec 20 09:47:47 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 14180185026b8ed793cc7dfd037620e5150ccc35
https://github.com/llvm/llvm-project/commit/14180185026b8ed793cc7dfd037620e5150ccc35
Author: Qiongsi Wu <274595+qiongsiwu at users.noreply.github.com>
Date: 2024-12-20 (Fri, 20 Dec 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Parse/Parser.cpp
A clang/test/Parser/objc-coloncolon.m
A clang/test/Parser/objcxx-coloncolon.mm
Log Message:
-----------
[clang][ObjectiveC] Fix Parsing the `::` Optional Scope Specifier (#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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list