Skip to content

Commit d3a8650

Browse files
author
roman_yakovenko
committed
misc: allow the process to continue, even in case the binary parser can not find the relevant declaration
1 parent ec2c8fd commit d3a8650

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pygccxml/binary_parsers/parsers.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import warnings
2424
import exceptions
2525
import subprocess
26+
from pygccxml import utils
2627
from pygccxml import declarations
2728

2829
class LicenseWarning( exceptions.UserWarning ):
@@ -95,10 +96,13 @@ def parse( self ):
9596
self.__loaded_symbols = self.load_symbols()
9697
result = {}
9798
for smbl in self.__loaded_symbols:
98-
decorated, decl = self.merge( smbl )
99-
if decl:
100-
decl.decorated_name = decorated
101-
result[ decorated ] = decl
99+
try:
100+
decorated, decl = self.merge( smbl )
101+
if decl:
102+
decl.decorated_name = decorated
103+
result[ decorated ] = decl
104+
except declarations.matcher.declaration_not_found_t:
105+
pass
102106
return result
103107

104108
CCTS = declarations.CALLING_CONVENTION_TYPES

0 commit comments

Comments
 (0)