15 using namespace clang;
17 std::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();
30 std::unique_ptr<SanitizerSpecialCaseList>
32 llvm::vfs::FileSystem &VFS) {
34 if (
auto SSCL =
create(Paths, VFS, Error))
36 llvm::report_fatal_error(Error);
40 for (
auto &S : Sections) {
43 #define SANITIZER(NAME, ID) \ 44 if (S.SectionMatcher->match(NAME)) \ 45 Mask |= SanitizerKind::ID; 46 #define SANITIZER_GROUP(NAME, ID, ALIAS) SANITIZER(NAME, ID) 48 #include "clang/Basic/Sanitizers.def" 50 #undef SANITIZER_GROUP 60 if ((S.Mask & Mask) &&
61 SpecialCaseList::inSectionBlame(S.Entries, Prefix, Query, Category))
static std::unique_ptr< SanitizerSpecialCaseList > createOrDie(const std::vector< std::string > &Paths, llvm::vfs::FileSystem &VFS)
std::vector< SanitizerSection > SanitizerSections
bool inSection(SanitizerMask Mask, StringRef Prefix, StringRef Query, StringRef Category=StringRef()) const
void createSanitizerSections()
Dataflow Directional Tag Classes.
static std::unique_ptr< SanitizerSpecialCaseList > create(const std::vector< std::string > &Paths, llvm::vfs::FileSystem &VFS, std::string &Error)