Ignore things from std:: in the ABI

This commit is contained in:
Jay Berkenbilt 2022-10-01 11:45:24 -04:00
parent c63fb86c01
commit 5e122f145f
1 changed files with 8 additions and 1 deletions

View File

@ -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):