LLVM  8.0.1
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 "llvm/ProfileData/Coverage/CoverageMapping.h"

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

Public Member Functions

 CoverageSegment (unsigned Line, unsigned Col, bool IsRegionEntry)
 
 CoverageSegment (unsigned Line, unsigned Col, uint64_t Count, bool IsRegionEntry, bool IsGapRegion=false)
 

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...
 
bool IsGapRegion
 Whether this enters a gap region. 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 381 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ CoverageSegment() [1/2]

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

Definition at line 395 of file CoverageMapping.h.

◆ CoverageSegment() [2/2]

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

Definition at line 399 of file CoverageMapping.h.

Friends And Related Function Documentation

◆ operator==

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

Definition at line 404 of file CoverageMapping.h.

Member Data Documentation

◆ Col

unsigned llvm::coverage::CoverageSegment::Col

The column where this segment begins.

Definition at line 385 of file CoverageMapping.h.

◆ Count

uint64_t llvm::coverage::CoverageSegment::Count

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

Definition at line 387 of file CoverageMapping.h.

Referenced by llvm::coverage::LineCoverageStats::LineCoverageStats().

◆ HasCount

bool llvm::coverage::CoverageSegment::HasCount

When false, the segment was uninstrumented or skipped.

Definition at line 389 of file CoverageMapping.h.

Referenced by llvm::coverage::LineCoverageStats::LineCoverageStats().

◆ IsGapRegion

bool llvm::coverage::CoverageSegment::IsGapRegion

Whether this enters a gap region.

Definition at line 393 of file CoverageMapping.h.

Referenced by llvm::coverage::LineCoverageStats::LineCoverageStats().

◆ IsRegionEntry

bool llvm::coverage::CoverageSegment::IsRegionEntry

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

Definition at line 391 of file CoverageMapping.h.

Referenced by llvm::coverage::LineCoverageStats::LineCoverageStats().

◆ Line

unsigned llvm::coverage::CoverageSegment::Line

The line where this segment begins.

Definition at line 383 of file CoverageMapping.h.


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