Example #1
0
def has_public_destructor(type):
    """returns True, if class has public destructor, False otherwise"""
    assert isinstance(type, class_declaration.class_t)
    return bool(
        algorithm.find_declaration(type.public_members,
                                   type=calldef.destructor_t,
                                   recursive=False))
 def __find_class_by_class_declaration( self, class_decl ):
     found = algorithm.find_declaration( class_decl.parent.declarations
                                         , name=class_decl.name
                                         , type=class_declaration.class_t )
     return found
Example #3
0
def has_public_destructor(type):
    """returns True, if class has public destructor, False otherwise"""
    assert isinstance( type, class_declaration.class_t )
    return bool( algorithm.find_declaration( type.public_members
                                             , type=calldef.destructor_t
                                             , recursive=False ) )
Example #4
0
 def __find_class_by_class_declaration( self, class_decl ):
     found = algorithm.find_declaration( class_decl.parent.declarations
                                         , name=class_decl.name
                                         , type=class_declaration.class_t )
     return found