Skip to content
Prev Previous commit
Next Next commit
add note to exception in c-analyzer
  • Loading branch information
iritkatriel committed Jan 28, 2025
commit cf020ca3492781c192a360e6728b2fe71deaa402
6 changes: 5 additions & 1 deletion Tools/c-analyzer/c_parser/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ class DeclID(namedtuple('DeclID', 'filename funcname name')):
@classmethod
def from_row(cls, row, **markers):
row = _tables.fix_row(row, **markers)
return cls(*row)
try:
return cls(*row)
except BaseException as e:
e.add_note(f"when processing row={row}")
raise

# We have to provide _make() because we implemented __new__().

Expand Down