Commit 547d0803 by sikang

update

parent 7428ceef
...@@ -66,7 +66,7 @@ def process_file_content(path, file_name): ...@@ -66,7 +66,7 @@ def process_file_content(path, file_name):
for line in lines: for line in lines:
if "interface" in line or "abstract" in line: if "interface" in line or "abstract" in line:
isAbstract=True isAbstract=True
if isAbstract or "//" in line: if isAbstract or "//" in line or "*" in line:
f_w.write(line) f_w.write(line)
continue continue
...@@ -86,7 +86,8 @@ def process_file_content(path, file_name): ...@@ -86,7 +86,8 @@ def process_file_content(path, file_name):
if return_level < 0: if return_level < 0:
return_level = 0 return_level = 0
if " class " in line and "{" in line:
func_level=0
if "//interference code" not in line and \ if "//interference code" not in line and \
("){\n" in line or ") {\n" in line) and \ ("){\n" in line or ") {\n" in line) and \
func_level == 0 and \ func_level == 0 and \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment