Home | History | Annotate | Download | only in Frontend

Lines Matching full:diags

79                                      DiagnosticsEngine &Diags) {
97 return getLastArgIntValue(Args, OPT_O, DefaultOpt, Diags);
139 DiagnosticsEngine &Diags) {
150 Diags.Report(diag::err_drv_invalid_value)
166 Diags.Report(diag::err_drv_invalid_value)
182 Diags.Report(diag::err_drv_invalid_value)
198 Diags.Report(diag::err_drv_invalid_value)
214 Diags.Report(diag::err_drv_invalid_value)
239 getLastArgIntValue(Args, OPT_analyzer_max_loop, 4, Diags);
243 Opts.InlineMaxStackDepth, Diags);
271 Diags.Report(SourceLocation(),
277 Diags.Report(SourceLocation(),
301 static StringRef getCodeModel(ArgList &Args, DiagnosticsEngine &Diags) {
307 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Value;
315 GenerateOptimizationRemarkRegex(DiagnosticsEngine &Diags, ArgList &Args,
321 Diags.Report(diag::err_drv_optimization_remark_pattern)
330 DiagnosticsEngine *Diags,
343 if (Diags)
344 Diags->Report(diag::err_drv_invalid_value) << FlagName << Level;
353 DiagnosticsEngine &Diags, SanitizerSet &S) {
357 Diags.Report(diag::err_drv_invalid_value) << FlagName << Sanitizer;
364 DiagnosticsEngine &Diags,
370 unsigned OptimizationLevel = getOptimizationLevel(Args, IK, Diags);
376 Diags.Report(diag::warn_drv_optimization_value)
398 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name;
415 Opts.DwarfVersion = getLastArgIntValue(Args, OPT_dwarf_version_EQ, 0, Diags);
464 Opts.CodeModel = getCodeModel(Args, Diags);
480 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args)
498 Opts.NumRegisterParameters = getLastArgIntValue(Args, OPT_mregparm, 0, Diags);
518 Diags.Report(diag::err_drv_invalid_value)
538 Diags.Report(diag::err_drv_argument_only_allowed_with)
565 Diags.Report(diag::err_drv_invalid_value)
587 getLastArgIntValue(Args, OPT_fsanitize_coverage_type, 0, Diags);
595 getLastArgIntValue(Args, OPT_fsanitize_memory_track_origins_EQ, 0, Diags);
600 getLastArgIntValue(Args, OPT_stack_protector_buffer_size, 8, Diags);
624 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name;
644 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name;
660 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Val;
677 GenerateOptimizationRemarkRegex(Diags, Args, A);
683 GenerateOptimizationRemarkRegex(Diags, Args, A);
689 GenerateOptimizationRemarkRegex(Diags, Args, A);
709 Args.getAllArgValues(OPT_fsanitize_recover_EQ), Diags,
712 Args.getAllArgValues(OPT_fsanitize_trap_EQ), Diags,
748 DiagnosticsEngine *Diags) {
786 if (Diags)
787 Diags->Report(diag::err_drv_invalid_value)
802 if (Diags)
803 Diags->Report(diag::err_drv_invalid_value)
821 if (Diags)
822 Diags->Report(diag::err_drv_invalid_value)
834 Diags, DiagMask);
840 Opts.ErrorLimit = getLastArgIntValue(Args, OPT_ferror_limit, 0, Diags);
843 DiagnosticOptions::DefaultMacroBacktraceLimit, Diags);
846 DiagnosticOptions::DefaultTemplateBacktraceLimit, Diags);
849 DiagnosticOptions::DefaultConstexprBacktraceLimit, Diags);
852 DiagnosticOptions::DefaultSpellCheckingLimit, Diags);
854 DiagnosticOptions::DefaultTabStop, Diags);
857 if (Diags)
858 Diags->Report(diag::warn_ignoring_ftabstop_value)
861 Opts.MessageLength = getLastArgIntValue(Args, OPT_fmessage_length, 0, Diags);
897 DiagnosticsEngine &Diags) {
997 Diags.Report(diag::err_test_module_file_extension_format) << Arg;
1012 Diags.Report(diag::err_drv_invalid_value)
1112 Diags.Report(diag::err_drv_argument_not_allowed_with)
1142 Diags.Report(diag::err_drv_invalid_value)
1384 DiagnosticsEngine &diags) {
1395 diags.Report(diag::err_drv_invalid_value)
1401 DiagnosticsEngine &Diags) {
1411 Diags.Report(diag::err_drv_invalid_value)
1423 Diags.Report(diag::err_drv_argument_not_allowed_with)
1431 Diags.Report(diag::err_drv_argument_not_allowed_with)
1436 Diags.Report(diag::err_drv_argument_not_allowed_with)
1442 Diags.Report(diag::err_drv_argument_not_allowed_with)
1463 Diags.Report(diag::err_drv_invalid_value)
1499 Diags.Report(diag::err_drv_unknown_objc_runtime) << value;
1509 Diags.Report(diag::err_arc_unsupported_on_runtime);
1527 Diags.Report(diag::err_objc_weak_with_gc);
1529 Diags.Report(diag::err_objc_weak_unsupported);
1547 Diags.Report(diag::err_drv_argument_not_allowed_with) << "-fgnu89-inline"
1555 Diags.Report(diag::warn_c_kext);
1576 Opts.setValueVisibilityMode(parseVisibility(visOpt, Args, Diags));
1583 Opts.setTypeVisibilityMode(parseVisibility(typeVisOpt, Args, Diags));
1607 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args)
1625 Opts.VtorDispMode = getLastArgIntValue(Args, OPT_vtordisp_mode_EQ, 1, Diags);
1671 getLastArgIntValue(Args, OPT_ftemplate_depth, 256, Diags);
1673 getLastArgIntValue(Args, OPT_foperator_arrow_depth, 256, Diags);
1675 getLastArgIntValue(Args, OPT_fconstexpr_depth, 512, Diags);
1677 getLastArgIntValue(Args, OPT_fconstexpr_steps, 1048576, Diags);
1678 Opts.BracketDepth = getLastArgIntValue(Args, OPT_fbracket_depth, 256, Diags);
1681 getLastArgIntValue(Args, OPT_Wlarge_by_value_copy_EQ, 0, Diags);
1690 Opts.PackStruct = getLastArgIntValue(Args, OPT_fpack_struct_EQ, 0, Diags);
1691 Opts.MaxTypeAlign = getLastArgIntValue(Args, OPT_fmax_type_align_EQ, 0, Diags);
1692 Opts.PICLevel = getLastArgIntValue(Args, OPT_pic_level, 0, Diags);
1693 Opts.PIELevel = getLastArgIntValue(Args, OPT_pie_level, 0, Diags);
1734 Diags.Report(diag::err_conflicting_module_names)
1741 Diags.Report(diag::err_drv_argument_not_allowed_with)
1751 Diags.Report(diag::err_drv_invalid_value)
1778 Diags.Report(diag::err_drv_invalid_value)
1795 unsigned Opt = getOptimizationLevel(Args, IK, Diags),
1817 unsigned SSP = getLastArgIntValue(Args, OPT_stack_protector, 0, Diags);
1820 Diags.Report(diag::err_drv_invalid_value)
1831 Diags, Opts.Sanitize);
1834 getLastArgIntValue(Args, OPT_fsanitize_address_field_padding, 0, Diags);
1840 DiagnosticsEngine &Diags) {
1865 Diags.Report(diag::err_drv_preamble_format);
1897 Diags.Report(diag::err_drv_invalid_remap_file) << A->getAsString(Args);
1912 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name;
1987 DiagnosticsEngine &Diags) {
2000 Diags.Report(diag::err_drv_missing_argument)
2007 Diags.Report(diag::err_drv_unknown_argument) << A->getAsString(Args);
2011 Success &= ParseAnalyzerArgs(*Res.getAnalyzerOpts(), Args, Diags);
2014 Success &= ParseDiagnosticArgs(Res.getDiagnosticOpts(), Args, &Diags);
2018 InputKind DashX = ParseFrontendArgs(Res.getFrontendOpts(), Args, Diags);
2020 Success &= ParseCodeGenArgs(Res.getCodeGenOpts(), Args, DashX, Diags,
2030 Diags, Res.getLangOpts()->Sanitize);
2033 ParseLangArgs(*Res.getLangOpts(), Args, DashX, Diags);
2042 ParsePreprocessorArgs(Res.getPreprocessorOpts(), Args, FileMgr, Diags);
2199 DiagnosticsEngine *Diags) {
2203 if (Diags)
2204 Diags->Report(diag::err_drv_invalid_int_value) << A->getAsString(Args)
2214 DiagnosticsEngine *Diags) {
2215 return getLastArgIntValueImpl<int>(Args, Id, Default, Diags);
2220 DiagnosticsEngine *Diags) {
2221 return getLastArgIntValueImpl<uint64_t>(Args, Id, Default, Diags);
2241 DiagnosticsEngine &Diags) {
2252 Diags.Report(diag::err_missing_vfs_overlay_file) << File;
2259 Diags.Report(diag::err_invalid_vfs_overlay) << File;