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

John McCall rjmccall at apple.com
Fri Dec 24 13:31:15 PST 2010


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?

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


More information about the cfe-dev mailing list