[pygccxml-commit] SF.net SVN: pygccxml: [807] pyplusplus_dev/pyplusplus
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2006-12-21 05:43:07
|
Revision: 807 http://svn.sourceforge.net/pygccxml/?rev=807&view=rev Author: roman_yakovenko Date: 2006-12-20 21:43:08 -0800 (Wed, 20 Dec 2006) Log Message: ----------- adding new warning and making epydoc to be happy Modified Paths: -------------- pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py pyplusplus_dev/pyplusplus/messages/warnings_.py Modified: pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py =================================================================== --- pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2006-12-20 08:47:22 UTC (rev 806) +++ pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2006-12-21 05:43:08 UTC (rev 807) @@ -164,6 +164,9 @@ if self.transformations: #if user defined transformation, than I think it took care of the problems + ft = self.transformations[0] + if ft.alias == ft.unique_name: + msgs.append( messages.W1044 % ft.alias ) return msgs if suspicious_type( self.return_type ) and None is self.call_policies: Modified: pyplusplus_dev/pyplusplus/messages/warnings_.py =================================================================== --- pyplusplus_dev/pyplusplus/messages/warnings_.py 2006-12-20 08:47:22 UTC (rev 806) +++ pyplusplus_dev/pyplusplus/messages/warnings_.py 2006-12-21 05:43:08 UTC (rev 807) @@ -126,9 +126,20 @@ W1043 = 'Py++ created an ugly alias ("%s") for template instantiated class.' +W1044 = 'Py++ created an ugly alias ("%s") for function wrapper.' + warnings = globals() for identifier, explanation in warnings.items(): + if len( identifier ) != 5: + continue + if identifier[0] != 'W': + continue + try: + int( identifier[1:] ) + except: + continue + globals()[ identifier ] = 'warning %s: %s' % ( identifier, explanation ) del warnings This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |