Lines Matching refs:Sanitizers

82 static std::string toString(const clang::SanitizerSet &Sanitizers);
162 return ((Sanitizers.Mask & NeedsUbsanRt & ~TrapSanitizers.Mask) || in needsUbsanRt()
164 !Sanitizers.has(Address) && !Sanitizers.has(Memory) && in needsUbsanRt()
165 !Sanitizers.has(Thread) && !Sanitizers.has(DataFlow) && !CfiCrossDso; in needsUbsanRt()
169 return !(Sanitizers.Mask & CFI & ~TrapSanitizers.Mask) && CfiCrossDso; in needsCfiRt()
173 return (Sanitizers.Mask & CFI & ~TrapSanitizers.Mask) && CfiCrossDso; in needsCfiDiagRt()
177 return NeedPIE || (Sanitizers.Mask & RequiresPIE); in requiresPIE()
181 return Sanitizers.Mask & NeedsUnwindTables; in needsUnwindTables()
574 Sanitizers.Mask |= Kinds; in SanitizerArgs()
579 static std::string toString(const clang::SanitizerSet &Sanitizers) { in toString() argument
582 if (Sanitizers.has(ID)) { \ in toString()
647 if (Sanitizers.empty()) in addArgs()
649 CmdArgs.push_back(Args.MakeArgString("-fsanitize=" + toString(Sanitizers))); in addArgs()
695 if (Sanitizers.has(Memory) || Sanitizers.has(Address)) in addArgs()
700 if (Sanitizers.hasOneOf(CFIClasses) && !TC.getTriple().isOSWindows() && in addArgs()
704 Sanitizers.Mask & CFIClasses) in addArgs()
790 std::string Sanitizers; in describeSanitizeArg() local
795 if (!Sanitizers.empty()) in describeSanitizeArg()
796 Sanitizers += ","; in describeSanitizeArg()
797 Sanitizers += A->getValue(i); in describeSanitizeArg()
801 assert(!Sanitizers.empty() && "arg didn't provide expected value"); in describeSanitizeArg()
802 return "-fsanitize=" + Sanitizers; in describeSanitizeArg()