1 //===--- SanitizerBlacklist.h - Blacklist for sanitizers --------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // User-provided blacklist used to disable/alter instrumentation done in
13 //===----------------------------------------------------------------------===//
14 #ifndef CLANG_CODEGEN_SANITIZERBLACKLIST_H
15 #define CLANG_CODEGEN_SANITIZERBLACKLIST_H
17 #include "clang/Basic/LLVM.h"
18 #include "llvm/ADT/StringRef.h"
19 #include "llvm/Support/SpecialCaseList.h"
31 class SanitizerBlacklist {
32 std::unique_ptr<llvm::SpecialCaseList> SCL;
35 SanitizerBlacklist(llvm::SpecialCaseList *SCL) : SCL(SCL) {}
36 bool isIn(const llvm::Module &M,
37 const StringRef Category = StringRef()) const;
38 bool isIn(const llvm::Function &F) const;
39 bool isIn(const llvm::GlobalVariable &G,
40 const StringRef Category = StringRef()) const;
41 bool isBlacklistedType(StringRef MangledTypeName) const;
43 } // end namespace CodeGen
44 } // end namespace clang