Skip to content

Commit 407cf3d

Browse files
committed
Remove signature line from start of body, not start of function.
1 parent ff78cf3 commit 407cf3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GcovGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void GcovGenerator::collate(const Entity& node) {
5151
/* omit the first line (containing the function signature) and the last
5252
* line (containing the closing brace); this misses functions defined on a
5353
* single line, assumed to be rare */
54-
for (int line = node.start_line + 1; line < node.end_line; ++line) {
54+
for (int line = node.middle_line + 1; line < node.end_line; ++line) {
5555
lines.insert(line);
5656
}
5757
}

0 commit comments

Comments
 (0)