LLVM API Documentation
A Counter mapping region associates a source range with a specific counter. More...
#include <CoverageMapping.h>
Public Types | |
enum | RegionKind { CodeRegion, ExpansionRegion, SkippedRegion } |
Public Member Functions | |
CounterMappingRegion (Counter Count, unsigned FileID, unsigned LineStart, unsigned ColumnStart, unsigned LineEnd, unsigned ColumnEnd, bool HasCodeBefore=false, RegionKind Kind=CodeRegion) | |
std::pair< unsigned, unsigned > | startLoc () const |
std::pair< unsigned, unsigned > | endLoc () const |
bool | operator< (const CounterMappingRegion &Other) const |
bool | contains (const CounterMappingRegion &Other) const |
Public Attributes | |
Counter | Count |
unsigned | FileID |
unsigned | ExpandedFileID |
unsigned | LineStart |
unsigned | ColumnStart |
unsigned | LineEnd |
unsigned | ColumnEnd |
RegionKind | Kind |
bool | HasCodeBefore |
A flag that is set to true when there is already code before this region on the same line. This is useful to accurately compute the execution counts for a line. | |
Static Public Attributes | |
static const unsigned | EncodingHasCodeBeforeBits = 1 |
A Counter mapping region associates a source range with a specific counter.
Definition at line 133 of file CoverageMapping.h.
Definition at line 134 of file CoverageMapping.h.
llvm::coverage::CounterMappingRegion::CounterMappingRegion | ( | Counter | Count, |
unsigned | FileID, | ||
unsigned | LineStart, | ||
unsigned | ColumnStart, | ||
unsigned | LineEnd, | ||
unsigned | ColumnEnd, | ||
bool | HasCodeBefore = false , |
||
RegionKind | Kind = CodeRegion |
||
) | [inline] |
Definition at line 159 of file CoverageMapping.h.
bool llvm::coverage::CounterMappingRegion::contains | ( | const CounterMappingRegion & | Other | ) | const [inline] |
Definition at line 181 of file CoverageMapping.h.
References endLoc(), FileID, and startLoc().
std::pair<unsigned, unsigned> llvm::coverage::CounterMappingRegion::endLoc | ( | ) | const [inline] |
Definition at line 171 of file CoverageMapping.h.
References ColumnEnd, and LineEnd.
Referenced by contains().
bool llvm::coverage::CounterMappingRegion::operator< | ( | const CounterMappingRegion & | Other | ) | const [inline] |
Definition at line 175 of file CoverageMapping.h.
References FileID, and startLoc().
std::pair<unsigned, unsigned> llvm::coverage::CounterMappingRegion::startLoc | ( | ) | const [inline] |
Definition at line 167 of file CoverageMapping.h.
References ColumnStart, and LineStart.
Referenced by contains(), and operator<().
Definition at line 152 of file CoverageMapping.h.
Referenced by endLoc().
Definition at line 152 of file CoverageMapping.h.
Referenced by startLoc().
Definition at line 150 of file CoverageMapping.h.
Definition at line 148 of file CoverageMapping.h.
Referenced by llvm::coverage::CoverageMappingWriter::write().
Definition at line 151 of file CoverageMapping.h.
Definition at line 151 of file CoverageMapping.h.
Referenced by contains(), and operator<().
A flag that is set to true when there is already code before this region on the same line. This is useful to accurately compute the execution counts for a line.
Definition at line 157 of file CoverageMapping.h.
Definition at line 153 of file CoverageMapping.h.
Definition at line 152 of file CoverageMapping.h.
Referenced by endLoc().
Definition at line 152 of file CoverageMapping.h.
Referenced by startLoc().