Lines Matching refs:Opt
37 StringRef Opt) { in EmitUnknownDiagWarning() argument
38 StringRef Suggestion = DiagnosticIDs::getNearestOption(Flavor, Opt); in EmitUnknownDiagWarning()
40 << (Flavor == diag::Flavor::WarningOrError ? 0 : 1) << (Prefix.str() += Opt) in EmitUnknownDiagWarning()
90 StringRef Opt = Opts.Warnings[i]; in ProcessWarningOptions() local
94 if (Opt == "format=0") in ProcessWarningOptions()
95 Opt = "no-format"; in ProcessWarningOptions()
100 if (Opt.startswith("no-")) { in ProcessWarningOptions()
102 Opt = Opt.substr(3); in ProcessWarningOptions()
112 if (Opt == "system-headers") { in ProcessWarningOptions()
120 if (Opt == "everything") { in ProcessWarningOptions()
134 if (Opt.startswith("error")) { in ProcessWarningOptions()
136 if (Opt.size() > 5) { // Specifier must be present. in ProcessWarningOptions()
137 if ((Opt[5] != '=' && Opt[5] != '-') || Opt.size() == 6) { in ProcessWarningOptions()
143 Specifier = Opt.substr(6); in ProcessWarningOptions()
162 if (Opt.startswith("fatal-errors")) { in ProcessWarningOptions()
164 if (Opt.size() != 12) { in ProcessWarningOptions()
165 if ((Opt[12] != '=' && Opt[12] != '-') || Opt.size() == 13) { in ProcessWarningOptions()
171 Specifier = Opt.substr(13); in ProcessWarningOptions()
190 if (DiagIDs->getDiagnosticsInGroup(Flavor, Opt, _Diags)) in ProcessWarningOptions()
192 Opt); in ProcessWarningOptions()
194 Diags.setSeverityForGroup(Flavor, Opt, Mapping); in ProcessWarningOptions()
199 StringRef Opt = Opts.Remarks[i]; in ProcessWarningOptions() local
204 bool IsPositive = !Opt.startswith("no-"); in ProcessWarningOptions()
205 if (!IsPositive) Opt = Opt.substr(3); in ProcessWarningOptions()
213 if (Opt == "everything") { in ProcessWarningOptions()
220 if (DiagIDs->getDiagnosticsInGroup(Flavor, Opt, _Diags)) in ProcessWarningOptions()
222 Opt); in ProcessWarningOptions()
224 Diags.setSeverityForGroup(Flavor, Opt, in ProcessWarningOptions()