LLVM: llvm::coverage::FunctionRecord Struct Reference (original) (raw)

Code coverage information for a single function. More...

#include "[llvm/ProfileData/Coverage/CoverageMapping.h](CoverageMapping%5F8h%5Fsource.html)"

Public Member Functions
FunctionRecord (StringRef Name, ArrayRef< StringRef > Filenames)
FunctionRecord (FunctionRecord &&FR)=default
FunctionRecord & operator= (FunctionRecord &&)=default
void pushMCDCRecord (MCDCRecord &&Record)
void pushRegion (CounterMappingRegion Region, uint64_t Count, uint64_t FalseCount)
Public Attributes
std::string Name
Raw function name.
std::vector< std::string > Filenames
Mapping from FileID (i.e.
std::vector< CountedRegion > CountedRegions
Regions in the function along with their counts.
std::vector< CountedRegion > CountedBranchRegions
Branch Regions in the function along with their counts.
std::vector< MCDCRecord > MCDCRecords
MCDC Records record a DecisionRegion and associated BranchRegions.
uint64_t ExecutionCount = 0
The number of times this function was executed.

Code coverage information for a single function.

Definition at line 716 of file CoverageMapping.h.

FunctionRecord() [2/2]

llvm::coverage::FunctionRecord::FunctionRecord ( FunctionRecord && FR) default

operator=()

pushMCDCRecord()

void llvm::coverage::FunctionRecord::pushMCDCRecord ( MCDCRecord && Record) inline

pushRegion()

CountedBranchRegions

std::vector<CountedRegion> llvm::coverage::FunctionRecord::CountedBranchRegions

CountedRegions

std::vector<CountedRegion> llvm::coverage::FunctionRecord::CountedRegions

ExecutionCount

uint64_t llvm::coverage::FunctionRecord::ExecutionCount = 0

Filenames

std::vectorstd::string llvm::coverage::FunctionRecord::Filenames

Mapping from FileID (i.e.

vector index) to filename. Used to support macro expansions within a function in which the macro and function are defined in separate files.

TODO: Uniquing filenames across all function records may be a performance optimization.

Definition at line 725 of file CoverageMapping.h.

Referenced by FunctionRecord().

MCDCRecords

std::vector<MCDCRecord> llvm::coverage::FunctionRecord::MCDCRecords

Name

std::string llvm::coverage::FunctionRecord::Name


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