« Return to Thread: Experimental Valgrind coverage tool (fwd)

Re: Experimental Valgrind coverage tool (fwd)

by Bugzilla from tom@compton.nu :: Rate this Message:

Reply to Author | View in Thread

In message <200802071350.08204.Josef.Weidendorfer@...>
        Josef Weidendorfer <Josef.Weidendorfer@...> wrote:

> On Thursday 07 February 2008, Oliver Gerlich wrote:
>> way to get it working correctly for this "not-instantiated template"
>> case... That's why I'm interested whether someone has found solution for
>> this.
>
> When the compiler does not instantiate a template, there is
> no code generated for that template, and there can not be any debug info
> for not existing code.
>
> Thus, any coverage tool purely based on the binary and its debug info
> has no way to know about the existance of template code without instantiation.

But equally the code can never be executed because it doesn't
exist. So you know what percentage of the code that actually
exists in your shipping executable is tested, you just don't
know about hypothetical code that might be created some day if
somebody instantiates a template differently.

Tom

--
Tom Hughes (tom@...)
http://www.compton.nu/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

 « Return to Thread: Experimental Valgrind coverage tool (fwd)