- xpath_query = ('.//compoundname[text()="%s"]/../sectiondef[@kind="public-func"]'
- '/memberdef[@kind="function"]/name[text()="%s"]/..') % tuple(self.fullname.rsplit('::', 1))
+ xpath_query = ""
+ print("fullname {}".format(self.fullname))
+ if self.argsstring != None:
+ (obj, meth) = self.fullname.rsplit('::', 1)
+ xpath_query = ('.//compoundname[text()="{:s}"]/../sectiondef[@kind="public-func" or @kind="public-static-func"]'
+ '/memberdef[@kind="function" and argsstring/text()="{:s}"]/name[text()="{:s}"]/..').format(obj,self.argsstring,meth)
+ else:
+ xpath_query = ('.//compoundname[text()="%s"]/../sectiondef[@kind="public-func" or @kind="public-static-func"]'
+ '/memberdef[@kind="function"]/name[text()="%s"]/..') % tuple(self.fullname.rsplit('::', 1))