LLVM 22.0.0git
llvm::coverage::ExpansionRecord Struct Reference

Coverage information for a macro expansion or #included file. More...

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

Public Member Functions

 ExpansionRecord (const CountedRegion &Region, const FunctionRecord &Function)

Public Attributes

unsigned FileID
 The abstract file this expansion covers.
const CountedRegionRegion
 The region that expands to this record.
const FunctionRecordFunction
 Coverage for the expansion.

Detailed Description

Coverage information for a macro expansion or #included file.

When covered code has pieces that can be expanded for more detail, such as a preprocessor macro use and its definition, these are represented as expansions whose coverage can be looked up independently.

Definition at line 832 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ ExpansionRecord()

llvm::coverage::ExpansionRecord::ExpansionRecord ( const CountedRegion & Region,
const FunctionRecord & Function )
inline

Definition at line 840 of file CoverageMapping.h.

References FileID, Function, and Region.

Member Data Documentation

◆ FileID

unsigned llvm::coverage::ExpansionRecord::FileID

The abstract file this expansion covers.

Definition at line 834 of file CoverageMapping.h.

Referenced by ExpansionRecord().

◆ Function

const FunctionRecord& llvm::coverage::ExpansionRecord::Function

Coverage for the expansion.

Definition at line 838 of file CoverageMapping.h.

Referenced by ExpansionRecord().

◆ Region

const CountedRegion& llvm::coverage::ExpansionRecord::Region

The region that expands to this record.

Definition at line 836 of file CoverageMapping.h.

Referenced by ExpansionRecord().


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