Skip to content

Commit

Permalink
Fix nasa#1048, also filter C++-style comments
Browse files Browse the repository at this point in the history
Truncate input lines at C++-style comment markers, in case users/projects
allow this style of comment.
  • Loading branch information
jphickey authored and pepepr08 committed Jun 9, 2021
1 parent d35ce9d commit fd60cf4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ut_assert/scripts/generate_stubs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@
}
close(HDR);

foreach (@lines)
{
# Truncate each line at C++-style comment
s/\/\/.*$//;
}

# combine all content into a single string
# this eases processing of multi-line constructs
$file = join('', @lines);
Expand Down

0 comments on commit fd60cf4

Please sign in to comment.