[llvm-bugs] [Bug 47330] New: clang rewrite introduces duplicate methods for property declare
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 27 05:50:55 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47330
Bug ID: 47330
Summary: clang rewrite introduces duplicate methods for
property declare
Product: clang
Version: trunk
Hardware: Macintosh
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: sunbohong at gmail.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
xcrun --sdk iphoneos clang -rewrite-objc ./Mock.m -v -target
arm64-apple-ios13.5
```
// Mock.h
@interface Mock : NSObject
@property (nonatomic, assign) NSInteger testProperty;
@end
```
```
// Mock.m
@implementation Mock
@end
```
Output:
```
// Mock.cpp
static struct /*_method_list_t*/ {
unsigned int entsize; // sizeof(struct _objc_method)
unsigned int method_count;
struct _objc_method method_list[4];
} _OBJC_$_INSTANCE_METHODS_Mock __attribute__ ((used, section
("__DATA,__objc_const"))) = {
sizeof(_objc_method),
4,
{{(struct objc_selector *)"testProperty", "q16 at 0:8", (void
*)_I_Mock_testProperty},
{(struct objc_selector *)"setTestProperty:", "v24 at 0:8q16", (void
*)_I_Mock_setTestProperty_},
{(struct objc_selector *)"testProperty", "q16 at 0:8", (void
*)_I_Mock_testProperty},
{(struct objc_selector *)"setTestProperty:", "v24 at 0:8q16", (void
*)_I_Mock_setTestProperty_}}
};
```
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200827/d1f7f1f8/attachment.html>
More information about the llvm-bugs
mailing list