Home | History | Annotate | Download | only in Driver

Lines Matching refs:Sanitizers

11 #include "clang/Basic/Sanitizers.h"
78 /// Produce a string containing comma-separated names of sanitizers in \p
79 /// Sanitizers set.
80 static std::string toString(const clang::SanitizerSet &Sanitizers);
112 #include "clang/Basic/Sanitizers.def"
119 // sanitizers disabled by the current sanitizer
160 return (Sanitizers.Mask & NeedsUbsanRt & ~TrapSanitizers.Mask) &&
161 !Sanitizers.has(Address) &&
162 !Sanitizers.has(Memory) &&
163 !Sanitizers.has(Thread) &&
168 return !(Sanitizers.Mask & CFI & ~TrapSanitizers.Mask) && CfiCrossDso;
172 return (Sanitizers.Mask & CFI & ~TrapSanitizers.Mask) && CfiCrossDso;
176 return NeedPIE || (Sanitizers.Mask & RequiresPIE);
180 return Sanitizers.Mask & NeedsUnwindTables;
184 Sanitizers.clear();
203 // sanitizers disabled by the current sanitizer
205 SanitizerMask AllAddedKinds = 0; // Mask of all sanitizers ever enabled by
231 // sanitizers in Add are those which have been explicitly enabled.
267 // Take out the Vptr sanitizer from the enabled sanitizers
274 // Silently discard any unsupported sanitizers implicitly enabled through
301 // Report error if there are non-trapping sanitizers that require
320 // Warn about incompatible groups of sanitizers.
452 // enabled sanitizers.
550 // Finally, initialize the set of available and recoverable sanitizers.
551 Sanitizers.Mask |= Kinds;
556 static std::string toString(const clang::SanitizerSet &Sanitizers) {
559 if (Sanitizers.has(ID)) { \
564 #include "clang/Basic/Sanitizers.def"
571 if (Sanitizers.empty())
573 CmdArgs.push_back(Args.MakeArgString("-fsanitize=" + toString(Sanitizers)));
627 if (Sanitizers.has(Memory) || Sanitizers.has(Address))
717 std::string Sanitizers;
722 if (!Sanitizers.empty())
723 Sanitizers += ",";
724 Sanitizers += A->getValue(i);
728 assert(!Sanitizers.empty() && "arg didn't provide expected value");
729 return "-fsanitize=" + Sanitizers;