diff --git a/find-modules/rules_engine.py b/find-modules/rules_engine.py --- a/find-modules/rules_engine.py +++ b/find-modules/rules_engine.py @@ -54,6 +54,10 @@ gettext.install(__name__) _SEPARATOR = "\x00" +# Keep PyCharm happy. +_ = _ + + def _parents(container): parents = [] parent = container.semantic_parent @@ -487,6 +491,8 @@ :param sip: A dict with the following keys: name The name of the typedef. + fn_result Result, for a function pointer. + decl The declaration. annotations Any SIP annotations. :param matcher: The re.Match object. This contains named @@ -658,6 +664,7 @@ "name": Optional string. If present, overrides the name of the method. + "parameters": Optional list. If present, update the argument list. "fn_result": Optional string. If present, update the return type. @@ -694,12 +701,16 @@ v[l]["usage"] = 0 def _get(self, item, name): - + # + # Lookup any parent-level entries. + # parents = _parents(item) entries = self.db.get(parents, None) if not entries: return None - + # + # Now look for an actual hit. + # entry = entries.get(name, None) if not entry: return None