clang 22.0.0git
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 (llvm::driver::ProfileInstrKind Kind) const
std::optional< ExclusionTypeisFunctionExcluded (StringRef FunctionName, llvm::driver::ProfileInstrKind Kind) const
std::optional< ExclusionTypeisLocationExcluded (SourceLocation Loc, llvm::driver::ProfileInstrKind Kind) const
std::optional< ExclusionTypeisFileExcluded (StringRef FileName, llvm::driver::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 65 of file ProfileList.cpp.

References isEmpty().

◆ ~ProfileList()

ProfileList::~ProfileList ( )
default

Member Function Documentation

◆ getDefault()

ProfileList::ExclusionType ProfileList::getDefault ( llvm::driver::ProfileInstrKind Kind) const

◆ isEmpty()

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

◆ isFileExcluded()

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

◆ isFunctionExcluded()

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

◆ isLocationExcluded()

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

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