Annotation variations: overview

PureCoverage uses debugging information in object files to determine line coverage information. This debugging information is created by the compiler when invoked with the -g option.

The debugging information recorded in object files varies from compiler to compiler. There is no single standard. This section identifies some of the differences in how compilers annotate source code.

The areas in which variations appear include:

complex source lines
multi-line statements

function entry points

local variable declarations

switch statements

exit() statements

C++ inline functions

Note: