Browse Source

!395 修复fossbot

Merge pull request !395 from gengchao/gen_api
pull/396/head
i-robot Gitee 4 years ago
parent
commit
fa9d46438f
1 changed files with 1 additions and 9 deletions
  1. +1
    -9
      parser/stub/gen_stubapi.py

+ 1
- 9
parser/stub/gen_stubapi.py View File

@@ -104,15 +104,7 @@ def file_endswith_white_list_suffix(file):
belows are patterns used for analyse .h file
"""
# pattern function
pattern_func = re.compile(r"""(^[\s]*) #leading with space,we will find and delete after
([a-zA-Z~_] # void int likely
.*
[)] #we find )
(?!.*{) # we do not want the case int abc() const { return 1;}
.*)
(;.*) #we want to find ; and after for we will replace these later
\n$
""", re.VERBOSE | re.MULTILINE | re.DOTALL)
pattern_func = re.compile(r"""(^[\s]*)([a-zA-Z~_].*[)](?!.*{).*)(;.*)\n$""", re.VERBOSE | re.MULTILINE | re.DOTALL)

# pattern comment
pattern_comment = re.compile(r'^\s*//')


Loading…
Cancel
Save