[cfe-dev] [Proposal] How i plan to implement operator __uuidof
pichet2000 at gmail.com
Mon Jan 17 10:54:42 PST 2011
On Mon, Jan 17, 2011 at 1:44 PM, Douglas Gregor <dgregor at apple.com> wrote:
> 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
Ok I decided to postpone the __uuidof implementation anyway. It is
used in MSVC's MFC/COM header files. Currently I am focusing on making
clang parses the MSVC C++ standard lib (vector, list, algorithm).
More information about the cfe-dev