Lines Matching refs:Diags

75                                      DiagnosticsEngine &Diags) {  in getOptimizationLevel()  argument
93 return getLastArgIntValue(Args, OPT_O, DefaultOpt, Diags); in getOptimizationLevel()
135 DiagnosticsEngine &Diags) { in ParseAnalyzerArgs() argument
146 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs()
162 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs()
178 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs()
194 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs()
210 Diags.Report(diag::err_drv_invalid_value) in ParseAnalyzerArgs()
235 getLastArgIntValue(Args, OPT_analyzer_max_loop, 4, Diags); in ParseAnalyzerArgs()
239 Opts.InlineMaxStackDepth, Diags); in ParseAnalyzerArgs()
271 Diags.Report(SourceLocation(), in ParseAnalyzerArgs()
277 Diags.Report(SourceLocation(), in ParseAnalyzerArgs()
301 static StringRef getCodeModel(ArgList &Args, DiagnosticsEngine &Diags) { in getCodeModel() argument
307 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Value; in getCodeModel()
315 GenerateOptimizationRemarkRegex(DiagnosticsEngine &Diags, ArgList &Args, in GenerateOptimizationRemarkRegex() argument
321 Diags.Report(diag::err_drv_optimization_remark_pattern) in GenerateOptimizationRemarkRegex()
330 DiagnosticsEngine &Diags, SanitizerSet &S) { in parseSanitizerKinds() argument
337 Diags.Report(diag::err_drv_invalid_value) << FlagName << Sanitizer; in parseSanitizerKinds()
344 DiagnosticsEngine &Diags, in ParseCodeGenArgs() argument
349 unsigned OptimizationLevel = getOptimizationLevel(Args, IK, Diags); in ParseCodeGenArgs()
355 Diags.Report(diag::warn_drv_optimization_value) in ParseCodeGenArgs()
377 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name; in ParseCodeGenArgs()
442 Opts.CodeModel = getCodeModel(Args, Diags); in ParseCodeGenArgs()
461 Opts.NumRegisterParameters = getLastArgIntValue(Args, OPT_mregparm, 0, Diags); in ParseCodeGenArgs()
478 Diags.Report(diag::err_drv_invalid_value) in ParseCodeGenArgs()
515 Diags.Report(diag::err_drv_invalid_value) in ParseCodeGenArgs()
531 getLastArgIntValue(Args, OPT_fsanitize_coverage, 0, Diags); in ParseCodeGenArgs()
533 getLastArgIntValue(Args, OPT_fsanitize_memory_track_origins_EQ, 0, Diags); in ParseCodeGenArgs()
537 getLastArgIntValue(Args, OPT_stack_protector_buffer_size, 8, Diags); in ParseCodeGenArgs()
561 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name; in ParseCodeGenArgs()
578 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name; in ParseCodeGenArgs()
594 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Val; in ParseCodeGenArgs()
611 GenerateOptimizationRemarkRegex(Diags, Args, A); in ParseCodeGenArgs()
617 GenerateOptimizationRemarkRegex(Diags, Args, A); in ParseCodeGenArgs()
623 GenerateOptimizationRemarkRegex(Diags, Args, A); in ParseCodeGenArgs()
643 Args.getAllArgValues(OPT_fsanitize_recover_EQ), Diags, in ParseCodeGenArgs()
667 DiagnosticsEngine *Diags) { in ParseDiagnosticArgs() argument
705 if (Diags) in ParseDiagnosticArgs()
706 Diags->Report(diag::err_drv_invalid_value) in ParseDiagnosticArgs()
721 if (Diags) in ParseDiagnosticArgs()
722 Diags->Report(diag::err_drv_invalid_value) in ParseDiagnosticArgs()
740 if (Diags) in ParseDiagnosticArgs()
741 Diags->Report(diag::err_drv_invalid_value) in ParseDiagnosticArgs()
752 Opts.ErrorLimit = getLastArgIntValue(Args, OPT_ferror_limit, 0, Diags); in ParseDiagnosticArgs()
755 DiagnosticOptions::DefaultMacroBacktraceLimit, Diags); in ParseDiagnosticArgs()
758 DiagnosticOptions::DefaultTemplateBacktraceLimit, Diags); in ParseDiagnosticArgs()
761 DiagnosticOptions::DefaultConstexprBacktraceLimit, Diags); in ParseDiagnosticArgs()
764 DiagnosticOptions::DefaultSpellCheckingLimit, Diags); in ParseDiagnosticArgs()
766 DiagnosticOptions::DefaultTabStop, Diags); in ParseDiagnosticArgs()
769 if (Diags) in ParseDiagnosticArgs()
770 Diags->Report(diag::warn_ignoring_ftabstop_value) in ParseDiagnosticArgs()
773 Opts.MessageLength = getLastArgIntValue(Args, OPT_fmessage_length, 0, Diags); in ParseDiagnosticArgs()
785 DiagnosticsEngine &Diags) { in ParseFrontendArgs() argument
885 Diags.Report(diag::err_drv_invalid_value) in ParseFrontendArgs()
980 Diags.Report(diag::err_drv_argument_not_allowed_with) in ParseFrontendArgs()
1010 Diags.Report(diag::err_drv_invalid_value) in ParseFrontendArgs()
1290 DiagnosticsEngine &Diags) { in ParseLangArgs() argument
1300 Diags.Report(diag::err_drv_invalid_value) in ParseLangArgs()
1312 Diags.Report(diag::err_drv_argument_not_allowed_with) in ParseLangArgs()
1320 Diags.Report(diag::err_drv_argument_not_allowed_with) in ParseLangArgs()
1325 Diags.Report(diag::err_drv_argument_not_allowed_with) in ParseLangArgs()
1331 Diags.Report(diag::err_drv_argument_not_allowed_with) in ParseLangArgs()
1352 Diags.Report(diag::err_drv_invalid_value) in ParseLangArgs()
1385 Diags.Report(diag::err_drv_unknown_objc_runtime) << value; in ParseLangArgs()
1395 Diags.Report(diag::err_arc_unsupported_on_runtime); in ParseLangArgs()
1417 Diags.Report(diag::warn_c_kext); in ParseLangArgs()
1435 Opts.setValueVisibilityMode(parseVisibility(visOpt, Args, Diags)); in ParseLangArgs()
1442 Opts.setTypeVisibilityMode(parseVisibility(typeVisOpt, Args, Diags)); in ParseLangArgs()
1466 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) in ParseLangArgs()
1484 Opts.VtorDispMode = getLastArgIntValue(Args, OPT_vtordisp_mode_EQ, 1, Diags); in ParseLangArgs()
1528 getLastArgIntValue(Args, OPT_ftemplate_depth, 256, Diags); in ParseLangArgs()
1530 getLastArgIntValue(Args, OPT_foperator_arrow_depth, 256, Diags); in ParseLangArgs()
1532 getLastArgIntValue(Args, OPT_fconstexpr_depth, 512, Diags); in ParseLangArgs()
1534 getLastArgIntValue(Args, OPT_fconstexpr_steps, 1048576, Diags); in ParseLangArgs()
1535 Opts.BracketDepth = getLastArgIntValue(Args, OPT_fbracket_depth, 256, Diags); in ParseLangArgs()
1538 getLastArgIntValue(Args, OPT_Wlarge_by_value_copy_EQ, 0, Diags); in ParseLangArgs()
1547 Opts.PackStruct = getLastArgIntValue(Args, OPT_fpack_struct_EQ, 0, Diags); in ParseLangArgs()
1548 Opts.MaxTypeAlign = getLastArgIntValue(Args, OPT_fmax_type_align_EQ, 0, Diags); in ParseLangArgs()
1549 Opts.PICLevel = getLastArgIntValue(Args, OPT_pic_level, 0, Diags); in ParseLangArgs()
1550 Opts.PIELevel = getLastArgIntValue(Args, OPT_pie_level, 0, Diags); in ParseLangArgs()
1579 Diags.Report(diag::err_conflicting_module_names) in ParseLangArgs()
1590 Diags.Report(diag::err_drv_invalid_value) in ParseLangArgs()
1617 Diags.Report(diag::err_drv_invalid_value) in ParseLangArgs()
1636 unsigned Opt = getOptimizationLevel(Args, IK, Diags), in ParseLangArgs()
1655 unsigned SSP = getLastArgIntValue(Args, OPT_stack_protector, 0, Diags); in ParseLangArgs()
1658 Diags.Report(diag::err_drv_invalid_value) in ParseLangArgs()
1669 Diags, Opts.Sanitize); in ParseLangArgs()
1672 getLastArgIntValue(Args, OPT_fsanitize_address_field_padding, 0, Diags); in ParseLangArgs()
1678 DiagnosticsEngine &Diags) { in ParsePreprocessorArgs() argument
1706 Diags.Report(diag::err_drv_preamble_format); in ParsePreprocessorArgs()
1748 Diags.Report(diag::err_drv_invalid_remap_file) << A->getAsString(Args); in ParsePreprocessorArgs()
1763 Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Name; in ParsePreprocessorArgs()
1838 DiagnosticsEngine &Diags) { in CreateFromArgs() argument
1851 Diags.Report(diag::err_drv_missing_argument) in CreateFromArgs()
1859 Diags.Report(diag::err_drv_unknown_argument) << (*it)->getAsString(*Args); in CreateFromArgs()
1863 Success = ParseAnalyzerArgs(*Res.getAnalyzerOpts(), *Args, Diags) && Success; in CreateFromArgs()
1866 Success = ParseDiagnosticArgs(Res.getDiagnosticOpts(), *Args, &Diags) in CreateFromArgs()
1871 InputKind DashX = ParseFrontendArgs(Res.getFrontendOpts(), *Args, Diags); in CreateFromArgs()
1873 Success = ParseCodeGenArgs(Res.getCodeGenOpts(), *Args, DashX, Diags, in CreateFromArgs()
1877 ParseLangArgs(*Res.getLangOpts(), *Args, DashX, Diags); in CreateFromArgs()
1886 ParsePreprocessorArgs(Res.getPreprocessorOpts(), *Args, FileMgr, Diags); in CreateFromArgs()
2034 DiagnosticsEngine *Diags) { in getLastArgIntValueImpl() argument
2038 if (Diags) in getLastArgIntValueImpl()
2039 Diags->Report(diag::err_drv_invalid_int_value) << A->getAsString(Args) in getLastArgIntValueImpl()
2049 DiagnosticsEngine *Diags) { in getLastArgIntValue() argument
2050 return getLastArgIntValueImpl<int>(Args, Id, Default, Diags); in getLastArgIntValue()
2055 DiagnosticsEngine *Diags) { in getLastArgUInt64Value() argument
2056 return getLastArgIntValueImpl<uint64_t>(Args, Id, Default, Diags); in getLastArgUInt64Value()
2076 DiagnosticsEngine &Diags) { in createVFSFromCompilerInvocation() argument
2087 Diags.Report(diag::err_missing_vfs_overlay_file) << File; in createVFSFromCompilerInvocation()
2094 Diags.Report(diag::err_invalid_vfs_overlay) << File; in createVFSFromCompilerInvocation()