Lines Matching defs:Sanitizers
11 #include "clang/Basic/Sanitizers.h"
81 /// Sanitizers set.
82 static std::string toString(const clang::SanitizerSet &Sanitizers);
114 #include "clang/Basic/Sanitizers.def"
162 return ((Sanitizers.Mask & NeedsUbsanRt & ~TrapSanitizers.Mask) ||
164 !Sanitizers.has(Address) && !Sanitizers.has(Memory) &&
165 !Sanitizers.has(Thread) && !Sanitizers.has(DataFlow) && !CfiCrossDso;
169 return !(Sanitizers.Mask & CFI & ~TrapSanitizers.Mask) && CfiCrossDso;
173 return (Sanitizers.Mask & CFI & ~TrapSanitizers.Mask) && CfiCrossDso;
177 return NeedPIE || (Sanitizers.Mask & RequiresPIE);
181 return Sanitizers.Mask & NeedsUnwindTables;
574 Sanitizers.Mask |= Kinds;
579 static std::string toString(const clang::SanitizerSet &Sanitizers) {
582 if (Sanitizers.has(ID)) { \
587 #include "clang/Basic/Sanitizers.def"
609 // Do it even if Sanitizers.empty() since some forms of coverage don't require
647 if (Sanitizers.empty())
649 CmdArgs.push_back(Args.MakeArgString("-fsanitize=" + toString(Sanitizers)));
695 if (Sanitizers.has(Memory) || Sanitizers.has(Address))
700 if (Sanitizers.hasOneOf(CFIClasses) && !TC.getTriple().isOSWindows() &&
704 Sanitizers.Mask & CFIClasses)
790 std::string Sanitizers;
795 if (!Sanitizers.empty())
796 Sanitizers += ",";
797 Sanitizers += A->getValue(i);
801 assert(!Sanitizers.empty() && "arg didn't provide expected value");
802 return "-fsanitize=" + Sanitizers;