[cfe-dev] [RFC] Preliminary patch to support MSVC __declspec(property)

endlessroad1991 at gmail.com endlessroad1991 at gmail.com
Fri Dec 14 01:11:51 PST 2012


Oh thanks, you're right.

So when we check type for property, we treat the type as if it's a return
type of a member function, and not a type of a member var.


On Fri, Dec 14, 2012 at 10:12 AM, Francois Pichet <pichet2000 at gmail.com>wrote:

>
>
>
> On Mon, Dec 10, 2012 at 10:52 PM, endlessroad1991 at gmail.com <
> endlessroad1991 at gmail.com> wrote:
>
>> Hi all, I've rewritten the __declspec(property) implementation,using
>> PseudoObject.
>>
>> If you're comfortable with this patch, I'll work on tests, code-style,
>> and post it to cfe-commits.
>>
>>
>>
>>
> One comment: A field part of a __declspec(property) can be incomplete.
> For example:
>
> class A {
>     A get_A() const;
>     __declspec(property(get=get_A)) A default_A;
> };
>
> Your patch will emit an error for that case, it must be accepted.
>



-- 
Best Regards, Tong Shen (沈彤)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121214/52aba36c/attachment.html>


More information about the cfe-dev mailing list