LLVM  14.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. More...
 
std::vector< CoverageSegment >::const_iterator begin () const
 Get an iterator over the coverage segments for this object. More...
 
std::vector< CoverageSegment >::const_iterator end () const
 
bool empty () const
 
ArrayRef< ExpansionRecordgetExpansions () const
 Expansions that can be further processed. More...
 
ArrayRef< CountedRegiongetBranches () const
 Branches that can be further processed. More...
 

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 531 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 542 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 549 of file CoverageMapping.h.

◆ empty()

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

Definition at line 557 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 563 of file CoverageMapping.h.

◆ getExpansions()

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

Expansions that can be further processed.

Definition at line 560 of file CoverageMapping.h.

◆ getFilename()

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

Get the name of the file this data covers.

Definition at line 545 of file CoverageMapping.h.

Friends And Related Function Documentation

◆ CoverageMapping

friend class CoverageMapping
friend

Definition at line 532 of file CoverageMapping.h.


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