LLVM 22.0.0git
llvm::SpecialCaseList::Section Class Reference

#include "llvm/Support/SpecialCaseList.h"

Classes

class  SectionImpl

Public Member Functions

LLVM_ABI Section (StringRef Name, unsigned FileIdx, bool UseGlobs)
LLVM_ABI Section (Section &&)
LLVM_ABI ~Section ()
StringRef name () const
LLVM_ABI bool matchName (StringRef Name) const
unsigned fileIndex () const
LLVM_ABI unsigned getLastMatch (StringRef Prefix, StringRef Query, StringRef Category) const
LLVM_ABI StringRef getLongestMatch (StringRef Prefix, StringRef Query, StringRef Category) const
LLVM_ABI bool hasPrefix (StringRef Prefix) const
 Returns true if the section has any entries for the given prefix.

Friends

class SpecialCaseList

Detailed Description

Definition at line 120 of file SpecialCaseList.h.

Constructor & Destructor Documentation

◆ Section() [1/2]

llvm::SpecialCaseList::Section::Section ( StringRef Name,
unsigned FileIdx,
bool UseGlobs )

Definition at line 442 of file SpecialCaseList.cpp.

References Section().

Referenced by Section(), and Section().

◆ Section() [2/2]

llvm::SpecialCaseList::Section::Section ( Section && )
default

References LLVM_ABI, and Section().

◆ ~Section()

llvm::SpecialCaseList::Section::~Section ( )
default

References LLVM_ABI.

Member Function Documentation

◆ fileIndex()

unsigned llvm::SpecialCaseList::Section::fileIndex ( ) const
inline

Definition at line 133 of file SpecialCaseList.h.

◆ getLastMatch()

unsigned llvm::SpecialCaseList::Section::getLastMatch ( StringRef Prefix,
StringRef Query,
StringRef Category ) const

Definition at line 475 of file SpecialCaseList.cpp.

◆ getLongestMatch()

StringRef llvm::SpecialCaseList::Section::getLongestMatch ( StringRef Prefix,
StringRef Query,
StringRef Category ) const

Definition at line 483 of file SpecialCaseList.cpp.

◆ hasPrefix()

bool llvm::SpecialCaseList::Section::hasPrefix ( StringRef Prefix) const

Returns true if the section has any entries for the given prefix.

Definition at line 491 of file SpecialCaseList.cpp.

◆ matchName()

bool llvm::SpecialCaseList::Section::matchName ( StringRef Name) const

Definition at line 451 of file SpecialCaseList.cpp.

◆ name()

StringRef llvm::SpecialCaseList::Section::name ( ) const
inline

Definition at line 127 of file SpecialCaseList.h.

◆ SpecialCaseList

friend class SpecialCaseList
friend

Definition at line 149 of file SpecialCaseList.h.

References SpecialCaseList.

Referenced by SpecialCaseList.


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