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