[cfe-commits] pr12328 PATCH: Friend method declaration doesn't require method to be visible

Stepan Dyatkovskiy stpworld at narod.ru
Mon Apr 16 11:53:17 PDT 2012


ping.
Stepan Dyatkovskiy wrote:
> ping.
> Stepan Dyatkovskiy wrote:
>> Hi all.
>> Please find patch in attachment for review.
>> I suppose that this check was not implemented yet, since I couldn't
>> found it anywhere. The friend method availability check was inserted in
>> Sema::ActOnFriendFunctionDecl.
>> I also added "DeclContext *FromContext" to the AccessedEntity class. It
>> allows to ask DelayedDiagnostic to use context that was "current" when
>> this diagnostics was requested. It is usefull in our case, since we
>> requested diagnostics when we're parsing class with "friend"
>> declaration, but diagnostics is invoked for class with definition of
>> friend member itself.
>>
>> -Stepan.
>




More information about the cfe-commits mailing list