Mercurial > hg > orthanc
diff OrthancFramework/Resources/CheckOrthancFrameworkSymbols.py @ 4279:ab4d015af660
moving inline methods to source files for ABI compatibility
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 20:48:01 +0100 |
parents | c5ca798b158a |
children | b30a8de92ad9 |
line wrap: on
line diff
--- a/OrthancFramework/Resources/CheckOrthancFrameworkSymbols.py Tue Nov 03 20:05:55 2020 +0100 +++ b/OrthancFramework/Resources/CheckOrthancFrameworkSymbols.py Tue Nov 03 20:48:01 2020 +0100 @@ -83,6 +83,8 @@ [ '-DORTHANC_BUILDING_FRAMEWORK_LIBRARY=1' ]) +FILES = [] +COUNT = 0 def ExploreNamespace(node, namespace): for child in node.get_children(): @@ -116,6 +118,10 @@ hasImplementation = True if hasImplementation: + global FILES, COUNT + FILES.append(str(child.location.file)) + COUNT += 1 + print('Exported public method with an implementation: %s::%s()' % ('::'.join(fqn), i.spelling)) @@ -124,3 +130,11 @@ if (node.kind == clang.cindex.CursorKind.NAMESPACE and node.spelling == 'Orthanc'): ExploreNamespace(node, [ 'Orthanc' ]) + + +print('\nTotal of possibly problematic methods: %d' % COUNT) + +print('\nFiles:\n') +for i in sorted(list(set(FILES))): + print(i) +