LLVM 20.0.0git
Public Member Functions | Friends | List of all members
llvm::coverage::CoverageData Class Reference

Coverage information to be processed or displayed. More...

#include "llvm/ProfileData/Coverage/CoverageMapping.h"

Public Member Functions

 CoverageData ()=default
 
 CoverageData (StringRef Filename)
 
StringRef getFilename () const
 Get the name of the file this data covers.
 
std::vector< CoverageSegment >::const_iterator begin () const
 Get an iterator over the coverage segments for this object.
 
std::vector< CoverageSegment >::const_iterator end () const
 
bool empty () const
 
ArrayRef< ExpansionRecordgetExpansions () const
 Expansions that can be further processed.
 
ArrayRef< CountedRegiongetBranches () const
 Branches that can be further processed.
 
ArrayRef< MCDCRecordgetMCDCRecords () const
 MCDC Records that can be further processed.
 

Friends

class CoverageMapping
 

Detailed Description

Coverage information to be processed or displayed.

This represents the coverage of an entire file, expansion, or function. It provides a sequence of CoverageSegments to iterate through, as well as the list of expansions that can be further processed.

Definition at line 885 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ CoverageData() [1/2]

llvm::coverage::CoverageData::CoverageData ( )
default

◆ CoverageData() [2/2]

llvm::coverage::CoverageData::CoverageData ( StringRef  Filename)
inline

Definition at line 897 of file CoverageMapping.h.

Member Function Documentation

◆ begin()

std::vector< CoverageSegment >::const_iterator llvm::coverage::CoverageData::begin ( ) const
inline

Get an iterator over the coverage segments for this object.

The segments are guaranteed to be uniqued and sorted by location.

Definition at line 904 of file CoverageMapping.h.

◆ empty()

bool llvm::coverage::CoverageData::empty ( ) const
inline

Definition at line 912 of file CoverageMapping.h.

◆ end()

std::vector< CoverageSegment >::const_iterator llvm::coverage::CoverageData::end ( ) const
inline

◆ getBranches()

ArrayRef< CountedRegion > llvm::coverage::CoverageData::getBranches ( ) const
inline

Branches that can be further processed.

Definition at line 918 of file CoverageMapping.h.

◆ getExpansions()

ArrayRef< ExpansionRecord > llvm::coverage::CoverageData::getExpansions ( ) const
inline

Expansions that can be further processed.

Definition at line 915 of file CoverageMapping.h.

◆ getFilename()

StringRef llvm::coverage::CoverageData::getFilename ( ) const
inline

Get the name of the file this data covers.

Definition at line 900 of file CoverageMapping.h.

◆ getMCDCRecords()

ArrayRef< MCDCRecord > llvm::coverage::CoverageData::getMCDCRecords ( ) const
inline

MCDC Records that can be further processed.

Definition at line 921 of file CoverageMapping.h.

Friends And Related Function Documentation

◆ CoverageMapping

friend class CoverageMapping
friend

Definition at line 886 of file CoverageMapping.h.


The documentation for this class was generated from the following file: