LLVM  3.7.0
Public Member Functions | Public Attributes | Friends | List of all members
llvm::coverage::CoverageSegment Struct Reference

The execution count information starting at a point in a file. More...

#include <CoverageMapping.h>

Collaboration diagram for llvm::coverage::CoverageSegment:
[legend]

Public Member Functions

 CoverageSegment (unsigned Line, unsigned Col, bool IsRegionEntry)
 
 CoverageSegment (unsigned Line, unsigned Col, uint64_t Count, bool IsRegionEntry)
 
void setCount (uint64_t NewCount)
 
void addCount (uint64_t NewCount)
 

Public Attributes

unsigned Line
 The line where this segment begins. More...
 
unsigned Col
 The column where this segment begins. More...
 
uint64_t Count
 The execution count, or zero if no count was recorded. More...
 
bool HasCount
 When false, the segment was uninstrumented or skipped. More...
 
bool IsRegionEntry
 Whether this enters a new region or returns to a previous count. More...
 

Friends

bool operator== (const CoverageSegment &L, const CoverageSegment &R)
 

Detailed Description

The execution count information starting at a point in a file.

A sequence of CoverageSegments gives execution counts for a file in format that's simple to iterate through for processing.

Definition at line 329 of file CoverageMapping.h.

Constructor & Destructor Documentation

llvm::coverage::CoverageSegment::CoverageSegment ( unsigned  Line,
unsigned  Col,
bool  IsRegionEntry 
)
inline

Definition at line 341 of file CoverageMapping.h.

llvm::coverage::CoverageSegment::CoverageSegment ( unsigned  Line,
unsigned  Col,
uint64_t  Count,
bool  IsRegionEntry 
)
inline

Definition at line 345 of file CoverageMapping.h.

Member Function Documentation

void llvm::coverage::CoverageSegment::addCount ( uint64_t  NewCount)
inline

Definition at line 360 of file CoverageMapping.h.

References Count, and setCount().

void llvm::coverage::CoverageSegment::setCount ( uint64_t  NewCount)
inline

Definition at line 355 of file CoverageMapping.h.

References Count, and HasCount.

Referenced by addCount().

Friends And Related Function Documentation

bool operator== ( const CoverageSegment L,
const CoverageSegment R 
)
friend

Definition at line 350 of file CoverageMapping.h.

Member Data Documentation

unsigned llvm::coverage::CoverageSegment::Col

The column where this segment begins.

Definition at line 333 of file CoverageMapping.h.

uint64_t llvm::coverage::CoverageSegment::Count

The execution count, or zero if no count was recorded.

Definition at line 335 of file CoverageMapping.h.

Referenced by addCount(), and setCount().

bool llvm::coverage::CoverageSegment::HasCount

When false, the segment was uninstrumented or skipped.

Definition at line 337 of file CoverageMapping.h.

Referenced by setCount().

bool llvm::coverage::CoverageSegment::IsRegionEntry

Whether this enters a new region or returns to a previous count.

Definition at line 339 of file CoverageMapping.h.

unsigned llvm::coverage::CoverageSegment::Line

The line where this segment begins.

Definition at line 331 of file CoverageMapping.h.


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