Skip to content

Commit

Permalink
Remove signature line from start of body, not start of function.
Browse files Browse the repository at this point in the history
  • Loading branch information
lawmurray committed Nov 13, 2024
1 parent ff78cf3 commit 407cf3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GcovGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void GcovGenerator::collate(const Entity& node) {
/* omit the first line (containing the function signature) and the last
* line (containing the closing brace); this misses functions defined on a
* single line, assumed to be rare */
for (int line = node.start_line + 1; line < node.end_line; ++line) {
for (int line = node.middle_line + 1; line < node.end_line; ++line) {
lines.insert(line);
}
}
Expand Down

0 comments on commit 407cf3d

Please sign in to comment.