Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Applied [HEAD] Re: [cdt-patch] Bug48307 - friendship needs to be handled better

JohnC



Andrew Niefer/Ottawa/IBM@IBMCA 
Sent by: cdt-patch-admin@xxxxxxxxxxx
01/08/2004 10:39 AM
Please respond to
cdt-patch


To
cdt-patch@xxxxxxxxxxx
cc

Subject
[cdt-patch] Bug48307 - friendship needs to be handled better






This patch addresses friend functions with changes to the the parser and 
symbol table.

Core:
        Added IDerivableContainerSymbol.lookupFunctionForFriendship.
        Modified IASTFactory.createMethod to take an ITokenDuple for the 
method name.
        Added LookupType.FORFRIENDSHIP and use it in LookupElement.
        Modified CompleteParseASTFactory.createMethod to handle friend 
functions.

Tests:
        Added CompleteParseASTTest::testBug48307_FriendFunction_1
        Added CompleteParseASTTest::testBug48307_FriendFunction_2

Tested on Windows.

-Andrew

[attachment "01.08.04.core.txt" deleted by John Camelon/Ottawa/IBM] 
[attachment "01.08.04.core.tests.txt" deleted by John Camelon/Ottawa/IBM] 



Back to the top