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

Stepan Dyatkovskiy stpworld at narod.ru
Thu Apr 19 00:45:57 PDT 2012


ping.
Stepan Dyatkovskiy wrote:
> 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.
>>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list