diff options
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/stack.c.gen | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/build-aux/stack.c.gen b/build-aux/stack.c.gen index e7a647a..2acce60 100755 --- a/build-aux/stack.c.gen +++ b/build-aux/stack.c.gen @@ -397,6 +397,23 @@ class PluginApplication: # Application-specific code +class AppPlugin: + def extra_nodes(self) -> typing.Collection[Node]: + return [] + + def indirect_callees(self, loc: str, line: str) -> tuple[list[str], bool] | None: + if "/3rd-party/" in loc: + return None + if "srv->auth" in line: + return [], False + if "srv->rootdir" in line: + return ["get_root"], False + return None + + def skip_call(self, chain: list[str], call: str) -> bool: + return False + + class LibObjPlugin: objcalls: dict[str, set[str]] # method_name => {method_impls} @@ -965,6 +982,7 @@ def main( hooks_is_intrhandler += [sbc_is_intrhandler] plugins += [ + AppPlugin(), LibObjPlugin(arg_c_fnames), LibHWPlugin(), LibCRIPCPlugin(), |