[clang] [clang][ObjectiveC] Fix Parsing Method Parameter Types with the `::` Prefix (PR #119908)
Volodymyr Sapsai via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 17 07:58:49 PST 2024
vsapsai wrote:
I don't know if we have a test for it but I've realized there are cases where you can have a legitimate double colon in Objective-C. For example,
```objective-c
@interface NSObject
@end
@implementation NSObject
- (void)performSelector:(SEL)selector {}
- (void)double:(int)firstArg :(int)secondArg colon:(int)thirdArg {}
- (void)test {
[self performSelector:@selector(double::colon:)];
}
@end
```
It's not a method parameter type, so it is possible your code isn't executed. But it is worth checking if we test this case.
https://github.com/llvm/llvm-project/pull/119908
More information about the cfe-commits
mailing list