clang  16.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
 
llvm::Optional< ExclusionTypeisFunctionExcluded (StringRef FunctionName, CodeGenOptions::ProfileInstrKind Kind) const
 
llvm::Optional< ExclusionTypeisLocationExcluded (SourceLocation Loc, CodeGenOptions::ProfileInstrKind Kind) const
 
llvm::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 66 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

◆ isFileExcluded()

llvm::Optional< ProfileList::ExclusionType > ProfileList::isFileExcluded ( StringRef  FileName,
CodeGenOptions::ProfileInstrKind  Kind 
) const

◆ isFunctionExcluded()

llvm::Optional< ProfileList::ExclusionType > ProfileList::isFunctionExcluded ( StringRef  FunctionName,
CodeGenOptions::ProfileInstrKind  Kind 
) const

◆ isLocationExcluded()

llvm::Optional< ProfileList::ExclusionType > ProfileList::isLocationExcluded ( SourceLocation  Loc,
CodeGenOptions::ProfileInstrKind  Kind 
) const

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