17std::unique_ptr<SanitizerSpecialCaseList>
19 llvm::vfs::FileSystem &VFS,
21 std::unique_ptr<clang::SanitizerSpecialCaseList> SSCL(
23 if (SSCL->createInternal(Paths, VFS, Error)) {
24 SSCL->createSanitizerSections();
30std::unique_ptr<SanitizerSpecialCaseList>
32 llvm::vfs::FileSystem &VFS) {
34 if (
auto SSCL =
create(Paths, VFS, Error))
36 llvm::report_fatal_error(StringRef(Error));
40 for (
auto &It : Sections) {
44#define SANITIZER(NAME, ID) \
45 if (S.SectionMatcher->match(NAME)) \
46 Mask |= SanitizerKind::ID;
47#define SANITIZER_GROUP(NAME, ID, ALIAS) SANITIZER(NAME, ID)
49#include "clang/Basic/Sanitizers.def"
61 if ((S.Mask & Mask) &&
62 SpecialCaseList::inSectionBlame(S.Entries, Prefix, Query,
Category))
static std::unique_ptr< SanitizerSpecialCaseList > create(const std::vector< std::string > &Paths, llvm::vfs::FileSystem &VFS, std::string &Error)
bool inSection(SanitizerMask Mask, StringRef Prefix, StringRef Query, StringRef Category=StringRef()) const
void createSanitizerSections()
static std::unique_ptr< SanitizerSpecialCaseList > createOrDie(const std::vector< std::string > &Paths, llvm::vfs::FileSystem &VFS)
std::vector< SanitizerSection > SanitizerSections
The JSON file list parser is used to communicate input to InstallAPI.