LLVM 22.0.0git
llvm::coverage::LineCoverageStats Class Reference

Coverage statistics for a single line. More...

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

Public Member Functions

LLVM_ABI LineCoverageStats (ArrayRef< const CoverageSegment * > LineSegments, const CoverageSegment *WrappedSegment, unsigned Line)
uint64_t getExecutionCount () const
bool hasMultipleRegions () const
bool isMapped () const
unsigned getLine () const
ArrayRef< const CoverageSegment * > getLineSegments () const
const CoverageSegmentgetWrappedSegment () const

Friends

class LineCoverageIterator

Detailed Description

Coverage statistics for a single line.

Definition at line 1106 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ LineCoverageStats()

LineCoverageStats::LineCoverageStats ( ArrayRef< const CoverageSegment * > LineSegments,
const CoverageSegment * WrappedSegment,
unsigned Line )

Definition at line 1563 of file CoverageMapping.cpp.

References llvm::any_of(), I, and if().

Member Function Documentation

◆ getExecutionCount()

uint64_t llvm::coverage::LineCoverageStats::getExecutionCount ( ) const
inline

Definition at line 1122 of file CoverageMapping.h.

◆ getLine()

unsigned llvm::coverage::LineCoverageStats::getLine ( ) const
inline

Definition at line 1128 of file CoverageMapping.h.

◆ getLineSegments()

ArrayRef< const CoverageSegment * > llvm::coverage::LineCoverageStats::getLineSegments ( ) const
inline

Definition at line 1130 of file CoverageMapping.h.

◆ getWrappedSegment()

const CoverageSegment * llvm::coverage::LineCoverageStats::getWrappedSegment ( ) const
inline

Definition at line 1134 of file CoverageMapping.h.

◆ hasMultipleRegions()

bool llvm::coverage::LineCoverageStats::hasMultipleRegions ( ) const
inline

Definition at line 1124 of file CoverageMapping.h.

◆ isMapped()

bool llvm::coverage::LineCoverageStats::isMapped ( ) const
inline

Definition at line 1126 of file CoverageMapping.h.

◆ LineCoverageIterator

friend class LineCoverageIterator
friend

Definition at line 1114 of file CoverageMapping.h.

References LineCoverageIterator, and LLVM_ABI.

Referenced by LineCoverageIterator.


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