class SpecialCaseList
Declaration
class SpecialCaseList { /* full declaration omitted */ };
Declared at: llvm/include/llvm/Support/SpecialCaseList.h:67
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()
SpecialCaseList()
Declared at: llvm/include/llvm/Support/SpecialCaseList.h:111
¶SpecialCaseList(const llvm::SpecialCaseList&)
SpecialCaseList(const llvm::SpecialCaseList&)
Declared at: llvm/include/llvm/Support/SpecialCaseList.h:112
Parameters
- const llvm::SpecialCaseList&
¶static std::unique_ptr<SpecialCaseList> create(
const std::vector<std::string>& Paths,
llvm::vfs::FileSystem& FS,
std::string& Error)
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:72
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)
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:76
Parameters
- const llvm::MemoryBuffer* MB
- std::string& Error
¶bool createInternal(
const std::vector<std::string>& Paths,
vfs::FileSystem& VFS,
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:107
Parameters
- const std::vector<std::string>& Paths
- vfs::FileSystem& VFS
- std::string& Error
¶bool createInternal(const llvm::MemoryBuffer* MB,
std::string& Error)
bool createInternal(const llvm::MemoryBuffer* MB,
std::string& Error)
Declared at: llvm/include/llvm/Support/SpecialCaseList.h:109
Parameters
- const llvm::MemoryBuffer* MB
- std::string& Error
¶static std::unique_ptr<SpecialCaseList>
createOrDie(const std::vector<std::string>& Paths,
llvm::vfs::FileSystem& FS)
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:81
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
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:90
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
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 blacklist entry corresponding to this expression.
Declared at: llvm/include/llvm/Support/SpecialCaseList.h:101
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
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:149
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)
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:144
Parameters
- const llvm::MemoryBuffer* MB
- StringMap<size_t>& SectionsMap
- std::string& Error
¶~SpecialCaseList()
~SpecialCaseList()
Declared at: llvm/include/llvm/Support/SpecialCaseList.h:83