clang 20.0.0git
Public Types | Public Member Functions | List of all members
clang::ProfileList Class Reference

#include "clang/Basic/ProfileList.h"

Public Types

enum  ExclusionType { Allow , Skip , Forbid }
 Represents if an how something should be excluded from profiling. More...
 

Public Member Functions

 ProfileList (ArrayRef< std::string > Paths, SourceManager &SM)
 
 ~ProfileList ()
 
bool isEmpty () const
 
ExclusionType getDefault (CodeGenOptions::ProfileInstrKind Kind) const
 
std::optional< ExclusionTypeisFunctionExcluded (StringRef FunctionName, CodeGenOptions::ProfileInstrKind Kind) const
 
std::optional< ExclusionTypeisLocationExcluded (SourceLocation Loc, CodeGenOptions::ProfileInstrKind Kind) const
 
std::optional< ExclusionTypeisFileExcluded (StringRef FileName, CodeGenOptions::ProfileInstrKind Kind) const
 

Detailed Description

Definition at line 28 of file ProfileList.h.

Member Enumeration Documentation

◆ ExclusionType

Represents if an how something should be excluded from profiling.

Enumerator
Allow 

Profiling is allowed.

Skip 

Profiling is skipped using the skipprofile attribute.

Forbid 

Profiling is forbidden using the noprofile attribute.

Definition at line 31 of file ProfileList.h.

Constructor & Destructor Documentation

◆ ProfileList()

ProfileList::ProfileList ( ArrayRef< std::string >  Paths,
SourceManager SM 
)

Definition at line 67 of file ProfileList.cpp.

◆ ~ProfileList()

ProfileList::~ProfileList ( )
default

Member Function Documentation

◆ getDefault()

ProfileList::ExclusionType ProfileList::getDefault ( CodeGenOptions::ProfileInstrKind  Kind) const

◆ isEmpty()

bool clang::ProfileList::isEmpty ( ) const
inline

Definition at line 51 of file ProfileList.h.

References clang::Empty.

Referenced by clang::CodeGen::CodeGenModule::isFunctionBlockedByProfileList().

◆ isFileExcluded()

std::optional< ProfileList::ExclusionType > ProfileList::isFileExcluded ( StringRef  FileName,
CodeGenOptions::ProfileInstrKind  Kind 
) const

◆ isFunctionExcluded()

std::optional< ProfileList::ExclusionType > ProfileList::isFunctionExcluded ( StringRef  FunctionName,
CodeGenOptions::ProfileInstrKind  Kind 
) const

◆ isLocationExcluded()

std::optional< ProfileList::ExclusionType > ProfileList::isLocationExcluded ( SourceLocation  Loc,
CodeGenOptions::ProfileInstrKind  Kind 
) const

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