From 407cf3db1d4ebf93fb7e34864c1b56c8a8f47642 Mon Sep 17 00:00:00 2001 From: Lawrence Murray Date: Wed, 13 Nov 2024 16:48:34 +0700 Subject: [PATCH] Remove signature line from start of body, not start of function. --- src/GcovGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GcovGenerator.cpp b/src/GcovGenerator.cpp index 0f84475..5535a9f 100644 --- a/src/GcovGenerator.cpp +++ b/src/GcovGenerator.cpp @@ -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); } }