Small fixes for documentation checking script

This commit is contained in:
Andrey Kamaev
2012-05-28 15:29:21 +00:00
parent ddd9a99c66
commit 18a8721f49
3 changed files with 17 additions and 1 deletions

View File

@@ -419,6 +419,9 @@ class CppHeaderParser(object):
print "Error at %d: no args in '%s'" % (self.lineno, decl_str)
sys.exit(-1)
decl_start = decl_str[:args_begin].strip()
# TODO: normalize all type of operators
if decl_start.endswith("()"):
decl_start = decl_start[0:-2].rstrip() + " ()"
# constructor/destructor case
if bool(re.match(r'(\w+::)*(?P<x>\w+)::~?(?P=x)', decl_start)):