[cfe-dev] [Proposal] How i plan to implement operator __uuidof

Douglas Gregor dgregor at apple.com
Mon Jan 17 10:44:16 PST 2011


On Dec 24, 2010, at 10:07 PM, Francois Pichet wrote:

> 
> 
> On Fri, Dec 24, 2010 at 4:31 PM, John McCall <rjmccall at apple.com> wrote:
> On Dec 24, 2010, at 12:16 AM, Francois Pichet wrote:
>> Here is my plan on how to implement the __uuidof operator.
>> doc: http://msdn.microsoft.com/en-us/library/zaah6a61(v=VS.90).aspx
>> 
>> 
>> For each class with an uuid attribute, clang would insert an implicit declaration of type: VarDecl.
> 
> Ugh.  I think the vast majority of AST clients would need to be updated to know about these special variable declarations.
> 
> If all you're worried about is how to represent __uuidof as a template argument, I think we should just keep it as a __uuidof expression, if we can make that work.  Doug?
> 
> 
> Yes I agree if we could represent __uuidof as a template argument then the need for the special variable is gone... that would be ideal.

I, too, like that idea.

	- Doug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110117/cd8ae5b1/attachment.html>


More information about the cfe-dev mailing list