Skip to content

Commit dacfd0b

Browse files
author
roman_yakovenko
committed
update history and clean testers from PDB compiler
1 parent 349081d commit dacfd0b

File tree

9 files changed

+478
-528
lines changed

9 files changed

+478
-528
lines changed

docs/history/history.rest

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ Version 1.1
3535
See :func:`pygccxml.parser.config.load_gccxml_configuration` for details.
3636

3737
4. From now on, :doc:`pygccxml <../pygccxml>` will use `Sphinx <http://sphinx.pocoo.org/>`_
38-
for all documentation.
38+
for all documentation. The documentation format and content were updated.
3939

4040
5. From now on, `pygccxml` will provide convenient setup for latest `GCC-XML`_
4141
version (CVS). See :doc:`download <../download>` document.
4242

4343
6. Bug `[ 2431993 ] pygccxml parses const volatile variable args as just const <http://sourceforge.net/tracker/index.php?func=detail&aid=2431993&group_id=118209&atid=684318>`_
4444
was fixed.
4545

46+
4647
-----------
4748
Version 1.0
4849
-----------

pygccxml/declarations/class_declaration.py

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -276,33 +276,7 @@ def recursive_derived(self):
276276
return self._recursive_derived
277277

278278
def _get_is_abstract(self):
279-
if self.compiler == compilers.MSVC_PDB_9:
280-
#prevent cyclic dependencies
281-
import calldef
282-
import function_traits
283-
from matchers import virtuality_type_matcher_t as vtmatcher_t
284-
filter_pv = vtmatcher_t( calldef.VIRTUALITY_TYPES.PURE_VIRTUAL )
285-
if self.calldefs( filter_pv, recursive=False, allow_empty=True ):
286-
return True
287-
filter_npv = vtmatcher_t( calldef.VIRTUALITY_TYPES.VIRTUAL ) \
288-
| vtmatcher_t( calldef.VIRTUALITY_TYPES.NOT_VIRTUAL )
289-
pv_calldefs = []
290-
npv_calldefs = []
291-
292-
npv_calldefs.extend( self.calldefs( filter_npv, recursive=False, allow_empty=True ) )
293-
for base in self.recursive_bases:
294-
cls = base.related_class
295-
pv_calldefs.extend( cls.calldefs( filter_pv, recursive=False, allow_empty=True ) )
296-
npv_calldefs.extend( cls.calldefs( filter_npv, recursive=False, allow_empty=True ) )
297-
298-
for pure_virtual in pv_calldefs:
299-
impl_found = filter( lambda f: function_traits.is_same_function( pure_virtual, f )
300-
, npv_calldefs )
301-
if not impl_found:
302-
return True
303-
return False
304-
else:
305-
return self._is_abstract
279+
return self._is_abstract
306280
def _set_is_abstract( self, is_abstract ):
307281
self._is_abstract = is_abstract
308282
is_abstract = property( _get_is_abstract, _set_is_abstract
@@ -344,8 +318,6 @@ def _set_byte_size( self, new_byte_size ):
344318
, doc="Size of this class in bytes @type: int")
345319

346320
def _get_byte_align(self):
347-
if self.compiler == compilers.MSVC_PDB_9:
348-
compilers.on_missing_functionality( self.compiler, "byte align" )
349321
return self._byte_align
350322
def _set_byte_align( self, new_byte_align ):
351323
self._byte_align = new_byte_align

pygccxml/declarations/compilers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#are dumped whether the user declared them or not. Those that were
1717
#implicitly declared by the compiler are marked as "artificial".
1818

19-
MSVC_PDB_9 = "MSVC PDB 9.0"
20-
2119
def on_missing_functionality( compiler, functionality ):
2220
raise NotImplementedError( '"%s" compiler doesn\'t support functionality "%s"'
2321
% ( compiler, functionality ))

pygccxml/declarations/cpptypes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ def _set_byte_size( self, new_byte_size ):
6565
, doc="Size of this type in bytes @type: int")
6666

6767
def _get_byte_align(self):
68-
if self.compiler == compilers.MSVC_PDB_9:
69-
compilers.on_missing_functionality( self.compiler, "byte align" )
7068
return self._byte_align
7169
def _set_byte_align( self, new_byte_align ):
7270
self._byte_align = new_byte_align

pygccxml/declarations/enumeration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ def _set_byte_size( self, new_byte_size ):
128128
, doc="Size of this class in bytes @type: int")
129129

130130
def _get_byte_align(self):
131-
if self.compiler == compilers.MSVC_PDB_9:
132-
compilers.on_missing_functionality( self.compiler, "byte align" )
133131
return self._byte_align
134132
def _set_byte_align( self, new_byte_align ):
135133
self._byte_align = new_byte_align

pygccxml/parser/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def raise_on_wrong_settings( self ):
205205
gccxml_path=
206206
#gccxml working directory - optional, could be set to your source code directory
207207
working_directory=
208-
#additional include directories, separated by ';' or ':'
208+
#additional include directories, separated by ';'
209209
include_paths=
210210
#gccxml has a nice algorithms, which selects what C++ compiler to emulate.
211211
#You can explicitly set what compiler it should emulate.

0 commit comments

Comments
 (0)