LLVM  8.0.1
Classes | Typedefs | Enumerations | Functions
llvm::coverage Namespace Reference

Classes

class  BinaryCoverageReader
 Reader for the coverage mapping data that is emitted by the frontend and stored in an object file. More...
 
struct  CountedRegion
 Associates a source range with an execution count. More...
 
struct  Counter
 A Counter is an abstract value that describes how to compute the execution count for a region of code using the collected profile count data. More...
 
struct  CounterExpression
 A Counter expression is a value that represents an arithmetic operation with two counters. More...
 
class  CounterExpressionBuilder
 A Counter expression builder is used to construct the counter expressions. More...
 
class  CounterMappingContext
 A Counter mapping context is used to connect the counters, expressions and the obtained counter values. More...
 
struct  CounterMappingRegion
 A Counter mapping region associates a source range with a specific counter. More...
 
class  CoverageData
 Coverage information to be processed or displayed. More...
 
class  CoverageFilenamesSectionWriter
 Writer of the filenames section for the instrumentation based code coverage. More...
 
class  CoverageMapError
 
class  CoverageMapping
 The mapping of profile information to coverage data. More...
 
class  CoverageMappingIterator
 A file format agnostic iterator over coverage mapping data. More...
 
class  CoverageMappingReader
 
struct  CoverageMappingRecord
 Coverage mapping information for a single function. More...
 
class  CoverageMappingWriter
 Writer for instrumentation based coverage mapping data. More...
 
struct  CoverageSegment
 The execution count information starting at a point in a file. More...
 
struct  CovMapFunctionRecord
 
struct  CovMapFunctionRecordV1
 
struct  CovMapHeader
 
struct  CovMapTraits
 
struct  CovMapTraits< CovMapVersion::Version1, IntPtrT >
 
struct  ExpansionRecord
 Coverage information for a macro expansion or #included file. More...
 
struct  FunctionRecord
 Code coverage information for a single function. More...
 
class  FunctionRecordIterator
 Iterator over Functions, optionally filtered to a single file. More...
 
class  InstantiationGroup
 An instantiation group contains a FunctionRecord list, such that each record corresponds to a distinct instantiation of the same function. More...
 
class  LineCoverageIterator
 An iterator over the LineCoverageStats objects for lines described by a CoverageData instance. More...
 
class  LineCoverageStats
 Coverage statistics for a single line. More...
 
class  RawCoverageFilenamesReader
 Reader for the raw coverage filenames. More...
 
class  RawCoverageMappingDummyChecker
 Checks if the given coverage mapping data is exported for an unused function. More...
 
class  RawCoverageMappingReader
 Reader for the raw coverage mapping data. More...
 
class  RawCoverageReader
 Base class for the raw coverage mapping and filenames data readers. More...
 

Typedefs

using LineColPair = std::pair< unsigned, unsigned >
 

Enumerations

enum  coveragemap_error {
  coveragemap_error::success = 0, coveragemap_error::eof, coveragemap_error::no_data_found, coveragemap_error::unsupported_version,
  coveragemap_error::truncated, coveragemap_error::malformed
}
 
enum  CovMapVersion { Version1 = 0, Version2 = 1, Version3 = 2, CurrentVersion = INSTR_PROF_COVMAP_VERSION }
 

Functions

const std::error_categorycoveragemap_category ()
 
std::error_code make_error_code (coveragemap_error E)
 
static iterator_range< LineCoverageIteratorgetLineCoverageStats (const coverage::CoverageData &CD)
 Get a LineCoverageIterator range for the lines described by CD. More...
 

Typedef Documentation

◆ LineColPair

using llvm::coverage::LineColPair = typedef std::pair<unsigned, unsigned>

Definition at line 202 of file CoverageMapping.h.

Enumeration Type Documentation

◆ coveragemap_error

Enumerator
success 
eof 
no_data_found 
unsupported_version 
truncated 
malformed 

Definition at line 52 of file CoverageMapping.h.

◆ CovMapVersion

Enumerator
Version1 
Version2 
Version3 
CurrentVersion 

Definition at line 762 of file CoverageMapping.h.

Function Documentation

◆ coveragemap_category()

const std::error_category & llvm::coverage::coveragemap_category ( )

Definition at line 777 of file CoverageMapping.cpp.

References ErrorCategory, and llvm::coverage::CoverageMapError::ID.

Referenced by make_error_code().

◆ getLineCoverageStats()

static iterator_range<LineCoverageIterator> llvm::coverage::getLineCoverageStats ( const coverage::CoverageData CD)
inlinestatic

Get a LineCoverageIterator range for the lines described by CD.

Definition at line 662 of file CoverageMapping.h.

◆ make_error_code()

std::error_code llvm::coverage::make_error_code ( coveragemap_error  E)
inline