• Home
  • Raw
  • Download

Lines Matching refs:Arg

56 static SanitizerMask parseArgValues(const Driver &D, const llvm::opt::Arg *A,
61 static int parseCoverageFeatures(const Driver &D, const llvm::opt::Arg *A);
75 static std::string describeSanitizeArg(const llvm::opt::Arg *A,
126 const auto *Arg = *I; in parseSanitizeTrapArgs() local
127 if (Arg->getOption().matches(options::OPT_fsanitize_trap_EQ)) { in parseSanitizeTrapArgs()
128 Arg->claim(); in parseSanitizeTrapArgs()
129 SanitizerMask Add = parseArgValues(D, Arg, true); in parseSanitizeTrapArgs()
138 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_trap_EQ)) { in parseSanitizeTrapArgs()
139 Arg->claim(); in parseSanitizeTrapArgs()
140 TrapRemove |= expandSanitizerGroups(parseArgValues(D, Arg, true)); in parseSanitizeTrapArgs()
141 } else if (Arg->getOption().matches( in parseSanitizeTrapArgs()
143 Arg->claim(); in parseSanitizeTrapArgs()
146 } else if (Arg->getOption().matches( in parseSanitizeTrapArgs()
148 Arg->claim(); in parseSanitizeTrapArgs()
222 const auto *Arg = *I; in SanitizerArgs() local
223 if (Arg->getOption().matches(options::OPT_fsanitize_EQ)) { in SanitizerArgs()
224 Arg->claim(); in SanitizerArgs()
225 SanitizerMask Add = parseArgValues(D, Arg, true); in SanitizerArgs()
260 const llvm::opt::Arg *NoRTTIArg = TC.getRTTIArg(); in SanitizerArgs()
280 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_EQ)) { in SanitizerArgs()
281 Arg->claim(); in SanitizerArgs()
282 SanitizerMask Remove = parseArgValues(D, Arg, true); in SanitizerArgs()
347 for (const auto *Arg : Args) { in SanitizerArgs() local
349 if (Arg->getOption().matches(options::OPT_fsanitize_recover)) { in SanitizerArgs()
352 Arg->claim(); in SanitizerArgs()
353 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_recover)) { in SanitizerArgs()
356 Arg->claim(); in SanitizerArgs()
357 } else if (Arg->getOption().matches(options::OPT_fsanitize_recover_EQ)) { in SanitizerArgs()
358 SanitizerMask Add = parseArgValues(D, Arg, true); in SanitizerArgs()
366 << Arg->getOption().getName() << toString(SetToDiagnose); in SanitizerArgs()
370 Arg->claim(); in SanitizerArgs()
371 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_recover_EQ)) { in SanitizerArgs()
372 RecoverableKinds &= ~expandSanitizerGroups(parseArgValues(D, Arg, true)); in SanitizerArgs()
373 Arg->claim(); in SanitizerArgs()
376 D.Diag(diag::warn_drv_deprecated_arg) << Arg->getAsString(Args) in SanitizerArgs()
393 for (const auto *Arg : Args) { in SanitizerArgs() local
394 if (Arg->getOption().matches(options::OPT_fsanitize_blacklist)) { in SanitizerArgs()
395 Arg->claim(); in SanitizerArgs()
396 std::string BLPath = Arg->getValue(); in SanitizerArgs()
403 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_blacklist)) { in SanitizerArgs()
404 Arg->claim(); in SanitizerArgs()
420 if (Arg *A = in SanitizerArgs()
454 for (const auto *Arg : Args) { in SanitizerArgs() local
455 if (Arg->getOption().matches(options::OPT_fsanitize_coverage)) { in SanitizerArgs()
456 Arg->claim(); in SanitizerArgs()
458 if (Arg->getNumValues() == 1 && in SanitizerArgs()
459 !StringRef(Arg->getValue(0)) in SanitizerArgs()
482 CoverageFeatures |= parseCoverageFeatures(D, Arg); in SanitizerArgs()
483 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_coverage)) { in SanitizerArgs()
484 Arg->claim(); in SanitizerArgs()
485 CoverageFeatures &= ~parseCoverageFeatures(D, Arg); in SanitizerArgs()
520 if (Arg *A = in SanitizerArgs()
530 if (Arg *WindowsDebugRTArg = in SanitizerArgs()
641 SanitizerMask parseArgValues(const Driver &D, const llvm::opt::Arg *A, in parseArgValues()
670 int parseCoverageFeatures(const Driver &D, const llvm::opt::Arg *A) { in parseCoverageFeatures()
698 const auto *Arg = *I; in lastArgumentForMask() local
699 if (Arg->getOption().matches(options::OPT_fsanitize_EQ)) { in lastArgumentForMask()
701 expandSanitizerGroups(parseArgValues(D, Arg, false)); in lastArgumentForMask()
703 return describeSanitizeArg(Arg, Mask); in lastArgumentForMask()
704 } else if (Arg->getOption().matches(options::OPT_fno_sanitize_EQ)) { in lastArgumentForMask()
706 expandSanitizerGroups(parseArgValues(D, Arg, false)); in lastArgumentForMask()
713 std::string describeSanitizeArg(const llvm::opt::Arg *A, SanitizerMask Mask) { in describeSanitizeArg()