File tree 1 file changed +7
-4
lines changed 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4666,10 +4666,12 @@ sub define_function
4666
4666
# TraceFile::is_language('c', $self->filename()) &&
4667
4667
$data -> line() != $start_line
4668
4668
) {
4669
+ $location = ' "' . $self -> filename() . ' ":' . $start_line
4670
+ unless defined ($location );
4669
4671
lcovutil::ignorable_error($lcovutil::ERROR_INCONSISTENT_DATA ,
4670
- ( defined ( $location ) ? " $location : " : ' ' ) .
4671
- " duplicate function ' $fnName ' starts on line $start_line but previous definition started on "
4672
- . $data -> line () . ' .' )
4672
+ " $location : duplicate function ' $fnName ' starts on line $start_line but previous definition started on "
4673
+ . $data -> line()
4674
+ . MessageContext::context () . ' .' )
4673
4675
unless
4674
4676
grep ({ $fnName =~ $_ } @lcovutil::suppress_function_patterns );
4675
4677
# if ignored, just return the function we already have -
@@ -4698,7 +4700,8 @@ sub define_function
4698
4700
" -> "
4699
4701
.
4700
4702
(defined ($end_line ) ? $end_line :
4701
- ' undef' ))
4703
+ ' undef' ) .
4704
+ MessageContext::context())
4702
4705
unless
4703
4706
grep ({ $fnName =~ $_ } @lcovutil::suppress_function_patterns );
4704
4707
# pick the highest end line if we didn't error out
You can’t perform that action at this time.
0 commit comments