Lines Matching defs:Opt
37 StringRef Prefix, StringRef Opt,
39 StringRef Suggestion = DiagnosticIDs::getNearestWarningOption(Opt);
43 << (Prefix.str() += Opt) << (Prefix.str() += Suggestion);
47 << (Prefix.str() += Opt);
85 StringRef Opt = Opts.Warnings[i];
88 if (Opt == "format=0")
89 Opt = "no-format";
94 if (Opt.startswith("no-")) {
96 Opt = Opt.substr(3);
105 if (Opt == "system-headers") {
113 if (Opt == "everything") {
127 if (Opt.startswith("error")) {
129 if (Opt.size() > 5) { // Specifier must be present.
130 if ((Opt[5] != '=' && Opt[5] != '-') || Opt.size() == 6) {
133 << "-Werror" << ("-W" + Opt.str());
136 Specifier = Opt.substr(6);
155 if (Opt.startswith("fatal-errors")) {
157 if (Opt.size() != 12) {
158 if ((Opt[12] != '=' && Opt[12] != '-') || Opt.size() == 13) {
161 << "-Wfatal-errors" << ("-W" + Opt.str());
164 Specifier = Opt.substr(13);
184 if (DiagIDs->getDiagnosticsInGroup(Opt, _Diags))
185 EmitUnknownDiagWarning(Diags, "-W", Opt, isPositive);
187 Diags.setDiagnosticGroupMapping(Opt, Mapping);