[cfe-commits] r145127 - in /cfe/trunk: lib/Sema/SemaExpr.cpp lib/Sema/SemaOverload.cpp test/SemaTemplate/ms-lookup-template-base-classes.cpp
pichet2000 at gmail.com
Fri Nov 25 14:29:12 CST 2011
On Fri, Nov 25, 2011 at 1:41 PM, Matthieu Monrocq
<matthieu.monrocq at gmail.com> wrote:
> Le 25 novembre 2011 02:10, Francois Pichet <pichet2000 at gmail.com> a écrit :
>> Author: fpichet
>> Date: Thu Nov 24 19:10:54 2011
>> New Revision: 145127
>> URL: http://llvm.org/viewvc/llvm-project?rev=145127&view=rev
>> In Microsoft mode, make "Unqualified lookup into dependent bases of class
>> templates" works inside a friend function definition at class scope.
>> Basically we have to look into the parent *lexical* DeclContext for friend
>> functions at class scope. That's because calling GetParent() return the
>> namespace or file DeclContext.
>> This fixes all remaining cases of "Unqualified lookup into dependent bases
>> of class templates" when parsing MFC code with clang.
> Wow nice!
> Just for our information, could you tell us what is missing for parsing MFC
> at the moment ? If I remember the previous point you had made, you might be
> getting very close by now.
clang is 2 issues away from being able to parse (-fsyntax-only) the
default wizard generated MFC app.
1. There is the missing typename patch I submitted 3 weeks ago. I am
going to ping dgregor about it when he comes back.
2. cl.exe allows creating a pointer to a member function in a cast by
just naming the function as in OnMember instead of &CLASS::OnMember.
More information about the cfe-commits