Skip to content

Commit

Permalink
Ignore things from std:: in the ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
jberkenbilt committed Oct 1, 2022
1 parent c63fb86 commit 5e122f1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion check_abi
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,14 @@ class Main:
m = re.match(r'^[0-9a-f]+ (.) (.+)@@LIBQPDF_\d+\s*$', line)
if not m:
continue
symbols.add(m.group(2))
symbol = m.group(2)
if re.match(r'^((void|int|bool|(.*? for)) )?std::', symbol):
# Calling different methods of STL classes causes
# different template instantiations to appear.
# Standard library methods that sneak into the binary
# interface are not considered part of the qpdf ABI.
continue
symbols.add(symbol)
return symbols

def dump(self, options):
Expand Down

0 comments on commit 5e122f1

Please sign in to comment.