سؤال

I am trying to analyze code coverage in c++ program using gcov. An output line I got is:

//my_header.h.gcov
-:  349:    TArray<unsigned,1,8> my_var; 

According to gcov documentation it means that 'line 349 contains no code'.

As one can clearly see, this line contains code, namely a declaration. I would really like to understand what happpens there.

هل كانت مفيدة؟

المحلول

Declarations are really just information for the compiler, and no executable code is generated. Therefore, there's nothing in this file to determine coverage for.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top