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

Francois Pichet pichet2000 at gmail.com
Fri Dec 24 22:07:03 PST 2010


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101225/b20eff66/attachment.html>


More information about the cfe-dev mailing list