Lines Matching refs:Diags
35 static void EmitUnknownDiagWarning(DiagnosticsEngine &Diags,
39 Diags.Report(diag::warn_unknown_diag_option)
44 void clang::ProcessWarningOptions(DiagnosticsEngine &Diags,
47 Diags.setSuppressSystemWarnings(true); // Default to -Wno-system-headers
48 Diags.setIgnoreAllWarnings(Opts.IgnoreWarnings);
49 Diags.setShowOverloads(Opts.getShowOverloads());
51 Diags.setElideType(Opts.ElideType);
52 Diags.setPrintTemplateTree(Opts.ShowTemplateTree);
53 Diags.setShowColors(Opts.ShowColors);
57 Diags.setErrorLimit(Opts.ErrorLimit);
59 Diags.setTemplateBacktraceLimit(Opts.TemplateBacktraceLimit);
61 Diags.setConstexprBacktraceLimit(Opts.ConstexprBacktraceLimit);
67 Diags.setExtensionHandlingBehavior(diag::Severity::Error);
69 Diags.setExtensionHandlingBehavior(diag::Severity::Warning);
71 Diags.setExtensionHandlingBehavior(diag::Severity::Ignored);
75 Diags.getDiagnosticIDs();
114 Diags.setSuppressSystemWarnings(!isPositive);
123 Diags.setEnableAllWarnings(true);
125 Diags.setEnableAllWarnings(false);
126 Diags.setSeverityForAll(Flavor, diag::Severity::Ignored);
139 Diags.Report(diag::warn_unknown_warning_specifier)
148 Diags.setWarningsAsErrors(isPositive);
154 Diags.setDiagnosticGroupWarningAsError(Specifier, isPositive);
156 EmitUnknownDiagWarning(Diags, Flavor, "-Werror=", Specifier);
167 Diags.Report(diag::warn_unknown_warning_specifier)
176 Diags.setErrorsAsFatal(isPositive);
182 Diags.setDiagnosticGroupErrorAsFatal(Specifier, isPositive);
184 EmitUnknownDiagWarning(Diags, Flavor, "-Wfatal-errors=", Specifier);
191 EmitUnknownDiagWarning(Diags, Flavor, isPositive ? "-W" : "-Wno-",
194 Diags.setSeverityForGroup(Flavor, Opt, Mapping);
215 Diags.setSeverityForAll(Flavor, Severity);
221 EmitUnknownDiagWarning(Diags, Flavor, IsPositive ? "-R" : "-Rno-",
224 Diags.setSeverityForGroup(Flavor, Opt,