[pygccxml-commit] SF.net SVN: pygccxml: [1170] pyplusplus_dev/pyplusplus
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2007-11-22 21:52:41
|
Revision: 1170 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1170&view=rev Author: roman_yakovenko Date: 2007-11-22 13:52:44 -0800 (Thu, 22 Nov 2007) Log Message: ----------- rename has_trivial_copy with has_copy_constructor to better reflect what function does Modified Paths: -------------- pyplusplus_dev/pyplusplus/code_creators/member_variable.py pyplusplus_dev/pyplusplus/module_creator/call_policies_resolver.py pyplusplus_dev/pyplusplus/module_creator/creator.py Modified: pyplusplus_dev/pyplusplus/code_creators/member_variable.py =================================================================== --- pyplusplus_dev/pyplusplus/code_creators/member_variable.py 2007-11-22 21:51:07 UTC (rev 1169) +++ pyplusplus_dev/pyplusplus/code_creators/member_variable.py 2007-11-22 21:52:44 UTC (rev 1170) @@ -621,7 +621,7 @@ return False if declarations.has_destructor( decl ) and not declarations.has_public_destructor( decl ): return False - if not declarations.has_trivial_copy(decl): + if not declarations.has_copy_constructor(decl): return False return True has_setter = property( _get_has_setter ) Modified: pyplusplus_dev/pyplusplus/module_creator/call_policies_resolver.py =================================================================== --- pyplusplus_dev/pyplusplus/module_creator/call_policies_resolver.py 2007-11-22 21:51:07 UTC (rev 1169) +++ pyplusplus_dev/pyplusplus/module_creator/call_policies_resolver.py 2007-11-22 21:52:44 UTC (rev 1170) @@ -161,7 +161,7 @@ return None if declarations.has_destructor( decl ) and not declarations.has_public_destructor( decl ): return None - if not declarations.has_trivial_copy(decl): + if not declarations.has_copy_constructor(decl): return None if hint == 'get': #if we rich this line, it means that we are able to create an obect using Modified: pyplusplus_dev/pyplusplus/module_creator/creator.py =================================================================== --- pyplusplus_dev/pyplusplus/module_creator/creator.py 2007-11-22 21:51:07 UTC (rev 1169) +++ pyplusplus_dev/pyplusplus/module_creator/creator.py 2007-11-22 21:52:44 UTC (rev 1170) @@ -572,7 +572,7 @@ if '0.9' in self.curr_decl.compiler: copy_constr = self.curr_decl.find_copy_constructor() add_to_wrapper = False - if declarations.has_trivial_copy( self.curr_decl ): + if declarations.has_copy_constructor( self.curr_decl ): #find out whether user or compiler defined it if self.curr_decl.noncopyable: add_to_wrapper = False @@ -594,7 +594,7 @@ tcons = code_creators.null_constructor_wrapper_t( class_=self.curr_decl ) wrapper.adopt_creator( tcons ) else: - if declarations.has_trivial_copy( self.curr_decl ): + if declarations.has_copy_constructor( self.curr_decl ): copy_constr = self.curr_decl.find_copy_constructor() if not self.curr_decl.noncopyable and copy_constr.is_artificial: cccc = code_creators.copy_constructor_wrapper_t( class_=self.curr_decl) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |