Home | History | Annotate | Download | only in Frontend

Lines Matching full:diags

36 static void EmitUnknownDiagWarning(DiagnosticsEngine &Diags,
41 Diags.Report(isPositive? diag::warn_unknown_warning_option_suggest :
45 Diags.Report(isPositive? diag::warn_unknown_warning_option :
50 void clang::ProcessWarningOptions(DiagnosticsEngine &Diags,
53 Diags.setSuppressSystemWarnings(true); // Default to -Wno-system-headers
54 Diags.setIgnoreAllWarnings(Opts.IgnoreWarnings);
55 Diags.setShowOverloads(Opts.getShowOverloads());
57 Diags.setElideType(Opts.ElideType);
58 Diags.setPrintTemplateTree(Opts.ShowTemplateTree);
59 Diags.setShowColors(Opts.ShowColors);
63 Diags.setErrorLimit(Opts.ErrorLimit);
65 Diags.setTemplateBacktraceLimit(Opts.TemplateBacktraceLimit);
67 Diags.setConstexprBacktraceLimit(Opts.ConstexprBacktraceLimit);
73 Diags.setExtensionHandlingBehavior(DiagnosticsEngine::Ext_Error);
75 Diags.setExtensionHandlingBehavior(DiagnosticsEngine::Ext_Warn);
77 Diags.setExtensionHandlingBehavior(DiagnosticsEngine::Ext_Ignore);
81 Diags.getDiagnosticIDs();
118 Diags.setSuppressSystemWarnings(!isPositive);
127 Diags.setEnableAllWarnings(true);
129 Diags.setEnableAllWarnings(false);
130 Diags.setMappingToAllDiagnostics(diag::MAP_IGNORE);
143 Diags.Report(diag::warn_unknown_warning_specifier)
152 Diags.setWarningsAsErrors(isPositive);
158 Diags.setDiagnosticGroupWarningAsError(Specifier, isPositive);
160 EmitUnknownDiagWarning(Diags, "-Werror=", Specifier, isPositive);
171 Diags.Report(diag::warn_unknown_warning_specifier)
180 Diags.setErrorsAsFatal(isPositive);
186 Diags.setDiagnosticGroupErrorAsFatal(Specifier, isPositive);
188 EmitUnknownDiagWarning(Diags, "-Wfatal-errors=", Specifier,
196 EmitUnknownDiagWarning(Diags, isPositive ? "-W" : "-Wno-", Opt,
199 Diags.setDiagnosticGroupMapping(Opt, Mapping);