class SpecialCaseList

Declaration

class SpecialCaseList { /* full declaration omitted */ };

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:70

Member Variables

protected std::vector<Section> Sections

Method Overview

  • protected SpecialCaseList()
  • protected SpecialCaseList(const llvm::SpecialCaseList &)
  • public static std::unique_ptr<SpecialCaseList> create(const std::vector<std::string> & Paths, llvm::vfs::FileSystem & FS, std::string & Error)
  • public static std::unique_ptr<SpecialCaseList> create(const llvm::MemoryBuffer * MB, std::string & Error)
  • protected bool createInternal(const std::vector<std::string> & Paths, vfs::FileSystem & VFS, std::string & Error)
  • protected bool createInternal(const llvm::MemoryBuffer * MB, std::string & Error)
  • public static std::unique_ptr<SpecialCaseList> createOrDie(const std::vector<std::string> & Paths, llvm::vfs::FileSystem & FS)
  • public bool inSection(llvm::StringRef Section, llvm::StringRef Prefix, llvm::StringRef Query, llvm::StringRef Category = llvm::StringRef()) const
  • public unsigned int inSectionBlame(llvm::StringRef Section, llvm::StringRef Prefix, llvm::StringRef Query, llvm::StringRef Category = llvm::StringRef()) const
  • protected unsigned int inSectionBlame(const llvm::SpecialCaseList::SectionEntries & Entries, llvm::StringRef Prefix, llvm::StringRef Query, llvm::StringRef Category) const
  • protected bool parse(const llvm::MemoryBuffer * MB, StringMap<size_t> & SectionsMap, std::string & Error)
  • public ~SpecialCaseList()

Methods

SpecialCaseList()

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:114

SpecialCaseList(const llvm::SpecialCaseList&)

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:115

Parameters

const llvm::SpecialCaseList&

static std::unique_ptr<SpecialCaseList> create(
    const std::vector<std::string>& Paths,
    llvm::vfs::FileSystem& FS,
    std::string& Error)

Description

Parses the special case list entries from files. On failure, returns 0 and writes an error message to string.

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:75

Parameters

const std::vector<std::string>& Paths
llvm::vfs::FileSystem& FS
std::string& Error

static std::unique_ptr<SpecialCaseList> create(
    const llvm::MemoryBuffer* MB,
    std::string& Error)

Description

Parses the special case list from a memory buffer. On failure, returns 0 and writes an error message to string.

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:79

Parameters

const llvm::MemoryBuffer* MB
std::string& Error

bool createInternal(
    const std::vector<std::string>& Paths,
    vfs::FileSystem& VFS,
    std::string& Error)

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:110

Parameters

const std::vector<std::string>& Paths
vfs::FileSystem& VFS
std::string& Error

bool createInternal(const llvm::MemoryBuffer* MB,
                    std::string& Error)

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:112

Parameters

const llvm::MemoryBuffer* MB
std::string& Error

static std::unique_ptr<SpecialCaseList>
createOrDie(const std::vector<std::string>& Paths,
            llvm::vfs::FileSystem& FS)

Description

Parses the special case list entries from files. On failure, reports a fatal error.

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:84

Parameters

const std::vector<std::string>& Paths
llvm::vfs::FileSystem& FS

bool inSection(llvm::StringRef Section,
               llvm::StringRef Prefix,
               llvm::StringRef Query,
               llvm::StringRef Category =
                   llvm::StringRef()) const

Description

Returns true, if special case list contains a line where @Querysatisfies wildcard expression <E > in a given

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:93

Parameters

llvm::StringRef Section
llvm::StringRef Prefix
llvm::StringRef Query
llvm::StringRef Category = llvm::StringRef()

unsigned int inSectionBlame(
    llvm::StringRef Section,
    llvm::StringRef Prefix,
    llvm::StringRef Query,
    llvm::StringRef Category =
        llvm::StringRef()) const

Description

Returns the line number corresponding to the special case list entry if the special case list contains a line where @Querysatisfies wildcard expression <E > in a given Returns zero if there is no exclusion entry corresponding to this expression.

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:104

Parameters

llvm::StringRef Section
llvm::StringRef Prefix
llvm::StringRef Query
llvm::StringRef Category = llvm::StringRef()

unsigned int inSectionBlame(
    const llvm::SpecialCaseList::SectionEntries&
        Entries,
    llvm::StringRef Prefix,
    llvm::StringRef Query,
    llvm::StringRef Category) const

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:152

Parameters

const llvm::SpecialCaseList::SectionEntries& Entries
llvm::StringRef Prefix
llvm::StringRef Query
llvm::StringRef Category

bool parse(const llvm::MemoryBuffer* MB,
           StringMap<size_t>& SectionsMap,
           std::string& Error)

Description

Parses just-constructed SpecialCaseList entries from a memory buffer.

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:147

Parameters

const llvm::MemoryBuffer* MB
StringMap<size_t>& SectionsMap
std::string& Error

~SpecialCaseList()

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:86