Skip to content

Commit

Permalink
fixed regex again
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpabou committed Oct 13, 2022
1 parent 049abe8 commit 46769c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fff_mock_gen/fff_mock_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def main():
# void function_name (const char* name);

# find all function prototypes
function_prototypes = re.findall(r'([\w|*|\s]+)\s(\w+)\s*\(((\w|\s|[,]|[*]|\[|\])*)\);', f.read())
function_prototypes = re.findall(r'([\w|*|" "]+)\s(\w+)\s*\(((\w|\s|[,]|[*]|\[|\])*)\);', f.read())

# remove if contains 'typedef'
function_prototypes = [x for x in function_prototypes if 'typedef' not in x[0]]
Expand Down

0 comments on commit 46769c8

Please sign in to comment.