Home
last modified time | relevance | path

Searched refs:Diag (Results 1 – 25 of 184) sorted by relevance

12345678

/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
DOptionalDiagnostic.h29 PartialDiagnostic *Diag; variable
32 explicit OptionalDiagnostic(PartialDiagnostic *Diag = nullptr) : Diag(Diag) {} in Diag() argument
35 if (Diag)
36 *Diag << v;
41 if (Diag) {
44 *Diag << StringRef(Buffer.data(), Buffer.size());
50 if (Diag) {
61 *Diag << StringRef(Buffer.data(), Buffer.size());
67 if (Diag) {
70 *Diag << StringRef(Buffer.data(), Buffer.size());
/freebsd-12-stable/contrib/llvm-project/clang/lib/Basic/
DDiagnosticIDs.cpp297 DiagnosticsEngine::DiagState::getOrAddMapping(diag::kind Diag) { in getOrAddMapping() argument
299 DiagMap.insert(std::make_pair(Diag, DiagnosticMapping())); in getOrAddMapping()
303 Result.first->second = GetDefaultDiagMapping(Diag); in getOrAddMapping()
490 const DiagnosticsEngine &Diag) const { in getDiagnosticLevel()
499 return toLevel(getDiagnosticSeverity(DiagID, Loc, Diag)); in getDiagnosticLevel()
510 const DiagnosticsEngine &Diag) const { in getDiagnosticSeverity()
518 DiagnosticsEngine::DiagState *State = Diag.GetDiagStateForLoc(Loc); in getDiagnosticSeverity()
535 if (Diag.AllExtensionsSilenced && IsExtensionDiag && !EnabledByDefault) in getDiagnosticSeverity()
574 Diag.CurDiagID != diag::fatal_too_many_errors && Diag.FatalsAsError) in getDiagnosticSeverity()
585 Diag.getSourceManager().isInSystemHeader( in getDiagnosticSeverity()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
DSemaObjCProperty.cpp97 S.Diag(property->getLocation(), in checkPropertyDeclWithOwnership()
398 S.Diag(NewProperty->getLocation(), diag::warn_property_attribute) in checkAtomicPropertyMismatch()
401 S.Diag(OldProperty->getLocation(), diag::note_property_declare); in checkAtomicPropertyMismatch()
428 Diag(CDecl->getLocation(), diag::err_continuation_class); in HandlePropertyInClassExtension()
443 Diag(AtLoc, diag::err_duplicate_property); in HandlePropertyInClassExtension()
444 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
464 Diag(AtLoc, diag) in HandlePropertyInClassExtension()
466 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
474 Diag(AtLoc, diag::warn_property_redecl_getter_mismatch) in HandlePropertyInClassExtension()
476 Diag(PIDecl->getLocation(), diag::note_property_declare); in HandlePropertyInClassExtension()
[all …]
DSemaDeclAttr.cpp222 S.Diag(getAttrLoc(AI), diag::err_attribute_argument_n_type) in checkUInt32Argument()
226 S.Diag(getAttrLoc(AI), diag::err_attribute_argument_type) in checkUInt32Argument()
232 S.Diag(Expr->getExprLoc(), diag::err_ice_too_large) in checkUInt32Argument()
238 S.Diag(getAttrLoc(AI), diag::err_attribute_requires_positive_integer) in checkUInt32Argument()
260 S.Diag(Expr->getExprLoc(), diag::err_ice_too_large) in checkPositiveIntArgument()
274 S.Diag(AL.getLoc(), diag::err_attributes_are_not_compatible) << AL << A; in checkAttrMutualExclusion()
275 S.Diag(A->getLocation(), diag::note_conflicting_attribute); in checkAttrMutualExclusion()
284 S.Diag(AL.getLocation(), diag::err_attributes_are_not_compatible) << &AL in checkAttrMutualExclusion()
286 S.Diag(A->getLocation(), diag::note_conflicting_attribute); in checkAttrMutualExclusion()
313 S.Diag(getAttrLoc(AI), diag::err_attribute_argument_n_type) in checkFunctionOrMethodParameterIndex()
[all …]
DSemaModule.cpp43 S.Diag(ImportLoc, (FromInclude && S.isModuleVisible(M)) in checkModuleImportContext()
47 S.Diag(cast<Decl>(DC)->getBeginLoc(), in checkModuleImportContext()
51 S.Diag(ImportLoc, diag::ext_module_import_in_extern_c) in checkModuleImportContext()
53 S.Diag(ExternCLoc, diag::note_extern_c_begins_here); in checkModuleImportContext()
110 Diag(ModuleLoc, diag::err_module_interface_implementation_mismatch) in ActOnModuleDecl()
116 Diag(ModuleLoc, diag::err_module_decl_in_module_map_module); in ActOnModuleDecl()
120 Diag(ModuleLoc, diag::err_module_decl_in_header_module); in ActOnModuleDecl()
132 Diag(ModuleLoc, diag::err_module_redeclaration); in ActOnModuleDecl()
133 Diag(VisibleModules.getImportLoc(ModuleScopes.back().Module), in ActOnModuleDecl()
147 Diag(ModuleLoc, diag::err_module_decl_not_at_start); in ActOnModuleDecl()
[all …]
DSemaDecl.cpp258 S.Diag(NameLoc, diag::ext_found_in_dependent_base) << &II; in recoverFromTypeInKnownDependentBase()
482 Diag(NameLoc, diag::err_out_of_line_qualified_id_type_names_constructor) in getTypeName()
579 Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II; in ActOnMSVCUnknownTypeName()
589 Diag(NameLoc, diag::ext_undeclared_unqual_id_with_dependent_base) << &II in ActOnMSVCUnknownTypeName()
752 Diag(IILoc, IsTemplateName ? diag::err_no_template in DiagnoseUnknownTypeName()
756 Diag(IILoc, IsTemplateName ? diag::err_no_member_template in DiagnoseUnknownTypeName()
767 Diag(SS->getRange().getBegin(), DiagID) in DiagnoseUnknownTypeName()
827 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag) in isTagTypeWithMissingTag()
833 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag()
1607 Diag(New->getLocation(), diag::err_mismatched_owning_module) in CheckRedeclarationModuleOwnership()
[all …]
DSemaAttr.cpp244 Diag(PragmaLoc, diag::err_pragma_options_align_mac68k_target_unsupported); in ActOnPragmaOptionsAlign()
259 Diag(PragmaLoc, diag::warn_pragma_options_align_reset_failed) in ActOnPragmaOptionsAlign()
307 Diag(PragmaLoc, diag::err_pragma_section_invalid_for_target) in ActOnPragmaClangSection()
326 Diag(PragmaLoc, diag::err_pragma_pack_identifer_not_supported); in ActOnPragmaPack()
345 Diag(PragmaLoc, diag::warn_pragma_pack_invalid_alignment); in ActOnPragmaPack()
351 Diag(PragmaLoc, diag::err_pragma_pack_invalid_alignment); in ActOnPragmaPack()
365 Diag(PragmaLoc, diag::warn_pragma_pack_show) << "mac68k"; in ActOnPragmaPack()
367 Diag(PragmaLoc, diag::warn_pragma_pack_show) << AlignmentVal; in ActOnPragmaPack()
374 Diag(PragmaLoc, diag::warn_pragma_pack_pop_identifier_and_alignment); in ActOnPragmaPack()
378 Diag(PragmaLoc, diag::warn_pragma_pop_failed) << "pack" << "stack empty"; in ActOnPragmaPack()
[all …]
DSemaDeclObjC.cpp107 Diag(loc, diag::err_arc_init_method_unrelated_result_type); in checkInitMethod()
117 S.Diag(NewD->getLocation(), diag::warn_overriding_method_missing_noescape); in diagnoseNoescape()
118 S.Diag(OldD->getLocation(), diag::note_overridden_marked_noescape); in diagnoseNoescape()
131 S.Diag(CD->getLocation(), diag::note_cat_conform_to_noescape_prot) in diagnoseNoescape()
162 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
168 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
175 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
180 Diag(Overridden->getLocation(), in CheckObjCMethodOverride()
186 Diag(NewMethod->getLocation(), in CheckObjCMethodOverride()
191 Diag(Overridden->getLocation(), diag::note_previous_decl) << "method"; in CheckObjCMethodOverride()
[all …]
DSemaTemplate.cpp361 Diag(IILoc, diag::err_template_kw_missing) in DiagnoseUnknownTemplateName()
551 Diag(Found.getNameLoc(), diag::err_template_kw_refers_to_non_template) in LookupTemplateName()
555 Diag(ExampleLookupResult->getUnderlyingDecl()->getLocation(), in LookupTemplateName()
598 Diag(Found.getNameLoc(), in LookupTemplateName()
602 Diag(Found.getRepresentativeDecl()->getLocation(), in LookupTemplateName()
605 Diag(FoundOuter.getFoundDecl()->getLocation(), in LookupTemplateName()
660 Diag(NameInfo.getBeginLoc(), diag::err_template_kw_missing) in diagnoseExprIntendedAsTemplateName()
707 Diag(Found->getLocation(), in diagnoseExprIntendedAsTemplateName()
713 Diag(NameInfo.getLoc(), diag::err_non_template_in_template_id) in diagnoseExprIntendedAsTemplateName()
716 Diag(Found->getLocation(), diag::note_non_template_in_template_id_found); in diagnoseExprIntendedAsTemplateName()
[all …]
DSemaExprObjC.cpp54 Diag(S->getBeginLoc(), diag::err_cfstring_literal_not_string_constant) in ParseObjCStringLiteral()
111 Diag(S->getBeginLoc(), diag::err_no_nsconstant_string_class) in BuildObjCStringLiteral()
152 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName(); in validateBoxingMethod()
159 S.Diag(Loc, diag::err_objc_literal_method_sig) in validateBoxingMethod()
161 S.Diag(Method->getLocation(), diag::note_objc_literal_method_return) in validateBoxingMethod()
202 S.Diag(Loc, diag::err_undeclared_objc_literal_class) in ValidateObjCLiteralInterfaceDecl()
206 S.Diag(Loc, diag::err_undeclared_objc_literal_class) in ValidateObjCLiteralInterfaceDecl()
208 S.Diag(Decl->getLocation(), diag::note_forward_class); in ValidateObjCLiteralInterfaceDecl()
251 S.Diag(Loc, diag::err_invalid_nsnumber_type) in getNSNumberFactoryMethod()
436 S.Diag(OrigElement->getBeginLoc(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
[all …]
DSemaType.cpp101 S.Diag(loc, diag::warn_type_attribute_wrong_type) << name << WhichType in diagnoseBadTypeAttribute()
797 S.Diag(Qual.second, DiagID) in diagnoseAndRemoveTypeQualifiers()
818 S.Diag(AL.getLoc(), in checkOmittedBlockReturnType()
845 S.Diag(loc, diag::err_objc_type_args_non_class) in applyObjCTypeArgs()
858 S.Diag(loc, diag::err_objc_type_args_non_parameterized_class) in applyObjCTypeArgs()
870 S.Diag(loc, diag::err_objc_type_args_specialized_class) in applyObjCTypeArgs()
898 S.Diag(attr.getBeginLoc(), in applyObjCTypeArgs()
906 S.Diag(qual.getBeginLoc(), diag::err_objc_type_arg_qualified) in applyObjCTypeArgs()
927 S.Diag(loc, diag::err_objc_type_args_wrong_arity) in applyObjCTypeArgs()
932 S.Diag(objcClass->getLocation(), diag::note_previous_decl) in applyObjCTypeArgs()
[all …]
DSemaStmt.cpp98 Diag(decl->getLocation(), diag::err_non_variable_decl_in_for); in ActOnForEachDeclStmt()
183 S.Diag(Loc, diag::warn_unused_comparison) in DiagnoseUnusedComparison()
190 S.Diag(Loc, diag::note_inequality_comparison_to_or_assign) in DiagnoseUnusedComparison()
193 S.Diag(Loc, diag::note_equality_comparison_to_assign) in DiagnoseUnusedComparison()
209 return S.Diag(Loc, diag::warn_unused_constructor) << A << R1 << R2; in DiagnoseNoDiscard()
210 return S.Diag(Loc, diag::warn_unused_result) << A << R1 << R2; in DiagnoseNoDiscard()
214 return S.Diag(Loc, diag::warn_unused_constructor_msg) << A << Msg << R1 in DiagnoseNoDiscard()
216 return S.Diag(Loc, diag::warn_unused_result_msg) << A << Msg << R1 << R2; in DiagnoseNoDiscard()
299 Diag(Loc, diag::warn_unused_call) << R1 << R2 << "pure"; in DiagnoseUnusedExprResult()
303 Diag(Loc, diag::warn_unused_call) << R1 << R2 << "const"; in DiagnoseUnusedExprResult()
[all …]
DSemaDeclCXX.cpp99 return S.Diag(DRE->getBeginLoc(), in VisitDeclRefExpr()
115 return S.Diag(DRE->getBeginLoc(), in VisitDeclRefExpr()
128 return S.Diag(ThisE->getBeginLoc(), in VisitCXXThisExpr()
155 return S.Diag(Lambda->getBeginLoc(), diag::err_lambda_capture_default_arg); in VisitLambdaExpr()
323 Diag(EqualLoc, diag::err_param_default_argument) in ActOnParamDefaultArgument()
337 Diag(EqualLoc, diag::err_param_default_argument_on_parameter_pack) in ActOnParamDefaultArgument()
423 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments()
426 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments()
548 Diag(NewParam->getLocation(), DiagDefaultParamID) in MergeCXXFunctionDecl()
559 Diag(OldParam->getLocation(), diag::note_previous_definition) in MergeCXXFunctionDecl()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Lex/
DPragma.cpp120 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma()
219 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
226 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
240 Diag(Tok, diag::err_invalid_string_udl); in Handle_Pragma()
254 Diag(PragmaLoc, diag::err__Pragma_malformed); in Handle_Pragma()
354 Diag(PragmaLoc, diag::err__Pragma_malformed); in HandleMicrosoft__pragma()
372 Diag(PragmaLoc, diag::err_unterminated___pragma); in HandleMicrosoft__pragma()
408 Diag(OnceTok, diag::pp_pragma_once_in_main_file); in HandlePragmaOnce()
445 Diag(Tok, diag::err_pp_invalid_poison); in HandlePragmaPoison()
458 Diag(Tok, diag::pp_poisoning_existing_macro); in HandlePragmaPoison()
[all …]
DPPDirectives.cpp273 return Diag(MacroNameTok, diag::err_pp_missing_macro_name); in CheckMacroName()
277 return Diag(MacroNameTok, diag::err_pp_macro_not_identifier); in CheckMacroName()
282 Diag(MacroNameTok, getLangOpts().MicrosoftExt in CheckMacroName()
292 return Diag(MacroNameTok, diag::err_defined_macro_name); in CheckMacroName()
300 Diag(MacroNameTok, diag::ext_pp_undef_builtin_macro); in CheckMacroName()
325 Diag(MacroNameTok, diag::warn_pp_macro_is_reserved_id); in CheckMacroName()
397 Diag(Tmp, diag::ext_pp_extra_tokens_at_eol) << DirType << Hint; in CheckEndOfDirective()
590 Diag(Tok, diag::pp_err_else_after_else); in SkipExcludedConditionalBlock()
615 Diag(Tok, diag::pp_err_elif_after_else) << PED_Elif; in SkipExcludedConditionalBlock()
653 Diag(Tok, diag::pp_err_elif_after_else) in SkipExcludedConditionalBlock()
[all …]
DPPExpressions.cpp150 PP.Diag(PeekTok.getLocation(), diag::err_pp_expected_after) in EvaluateDefined()
152 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren; in EvaluateDefined()
204 PP.Diag(beginLoc, diag::warn_defined_in_function_type_macro); in EvaluateDefined()
206 PP.Diag(beginLoc, diag::warn_defined_in_object_type_macro); in EvaluateDefined()
257 PP.Diag(PeekTok, diag::warn_pp_undef_identifier) << II; in EvaluateValue()
270 PP.Diag(PeekTok, diag::warn_pp_undef_prefix) in EvaluateValue()
283 PP.Diag(PeekTok, diag::err_pp_expr_bad_token_start_expr); in EvaluateValue()
288 PP.Diag(PeekTok, diag::err_pp_expected_value_in_expr); in EvaluateValue()
305 PP.Diag(PeekTok, diag::err_pp_illegal_floating_literal); in EvaluateValue()
312 PP.Diag(PeekTok, diag::err_pp_invalid_udl) << /*integer*/1; in EvaluateValue()
[all …]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/ubsan/
Dubsan_diag.h134 class Diag {
191 Diag &AddArg(Arg A) { in AddArg()
197 Diag &AddRange(Range A) { in AddRange()
204 Diag(const Diag &); // NOT IMPLEMENTED
205 Diag &operator=(const Diag &);
208 Diag(Location Loc, DiagLevel Level, ErrorType ET, const char *Message) in Diag() function
211 ~Diag();
213 Diag &operator<<(const char *Str) { return AddArg(Str); }
214 Diag &operator<<(TypeName TN) { return AddArg(TN); }
215 Diag &operator<<(unsigned long long V) { return AddArg(UIntMax(V)); }
[all …]
Dubsan_handlers.cpp117 Diag(Loc, DL_Error, ET, "%0 null pointer of type %1") in handleTypeMismatchImpl()
121 Diag(Loc, DL_Error, ET, "%0 misaligned address %1 for type %3, " in handleTypeMismatchImpl()
127 Diag(Loc, DL_Error, ET, "%0 address %1 with insufficient space " in handleTypeMismatchImpl()
136 Diag(Pointer, DL_Note, ET, "pointer points here"); in handleTypeMismatchImpl()
174 Diag(Loc, DL_Error, ET, in handleAlignmentAssumptionImpl()
178 Diag(Loc, DL_Error, ET, in handleAlignmentAssumptionImpl()
185 Diag(AssumptionLoc, DL_Note, ET, "alignment assumption was specified here"); in handleAlignmentAssumptionImpl()
187 Diag(RealPointer, DL_Note, ET, in handleAlignmentAssumptionImpl()
227 Diag(Loc, DL_Error, ET, "%0 integer overflow: " in handleIntegerOverflowImpl()
265 Diag(Loc, DL_Error, ET, in handleNegateOverflowImpl()
[all …]
Dubsan_handlers_cxx.cpp52 Diag(Loc, DL_Error, ET, in HandleDynamicTypeCacheMiss()
59 Diag(Pointer, DL_Note, ET, in HandleDynamicTypeCacheMiss()
64 Diag(Pointer, DL_Note, ET, "object has invalid vptr") in HandleDynamicTypeCacheMiss()
69 Diag(Pointer, DL_Note, ET, "object is of type %0") in HandleDynamicTypeCacheMiss()
75 Diag(Pointer - DTI.getOffset(), DL_Note, ET, in HandleDynamicTypeCacheMiss()
133 Diag(Loc, DL_Error, ET, in __ubsan_handle_cfi_bad_type()
140 Diag(Vtable, DL_Note, ET, "invalid vtable"); in __ubsan_handle_cfi_bad_type()
142 Diag(Vtable, DL_Note, ET, "vtable is of type %0") in __ubsan_handle_cfi_bad_type()
156 Diag(Loc, DL_Note, ET, "check failed in %0, vtable located in %1") in __ubsan_handle_cfi_bad_type()
181 Diag(CallLoc, DL_Error, ET, in handleFunctionTypeMismatch()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Parse/
DParsePragma.cpp110 PP.Diag(Tok.getLocation(), diag::warn_pragma_fp_ignored) in HandlePragma()
157 PP.Diag(UnknownTok, diag::ext_stdc_pragma_ignored); in HandlePragma()
741 PP.Diag(Tok, diag::err_expected) << tok::l_brace; in HandlePragmaCaptured()
787 PP.Diag(NameLoc, diag::warn_pragma_expected_predicate) << 1; in HandlePragmaOpenCLExtension()
799 PP.Diag(NameLoc, diag::warn_pragma_unknown_extension) << Ident; in HandlePragmaOpenCLExtension()
803 PP.Diag(NameLoc, diag::warn_pragma_extension_is_core) << Ident; in HandlePragmaOpenCLExtension()
805 PP.Diag(NameLoc, diag::warn_pragma_unsupported_extension) << Ident; in HandlePragmaOpenCLExtension()
862 PP.Diag(PragmaLocation, diag::warn_pragma_expected_lparen) << PragmaName; in HandlePragmaMSSection()
868 PP.Diag(PragmaLocation, diag::warn_pragma_expected_section_name) in HandlePragmaMSSection()
877 PP.Diag(PragmaLocation, diag::warn_pragma_expected_non_wide_string) in HandlePragmaMSSection()
[all …]
DParseDeclCXX.cpp79 Diag(Tok.getLocation(), getLangOpts().CPlusPlus17 in ParseNamespace()
113 Diag(attrLoc, diag::err_unexpected_nested_namespace_attribute); in ParseNamespace()
123 Diag(Tok, diag::err_expected) << tok::identifier; in ParseNamespace()
129 Diag(attrLoc, diag::err_unexpected_namespace_attributes_alias); in ParseNamespace()
131 Diag(InlineLoc, diag::err_inline_namespace_alias) in ParseNamespace()
140 Diag(Tok, diag::err_expected) << tok::l_brace; in ParseNamespace()
142 Diag(Tok, diag::err_expected_either) << tok::identifier << tok::l_brace; in ParseNamespace()
149 Diag(T.getOpenLocation(), diag::err_namespace_nonnamespace_scope); in ParseNamespace()
157 Diag(InlineLoc, diag::err_inline_nested_namespace_definition); in ParseNamespace()
159 Diag(ExtraNSs[0].NamespaceLoc, in ParseNamespace()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/ARCMigrate/
DFileRemapper.cpp49 bool FileRemapper::initFromDisk(StringRef outputDir, DiagnosticsEngine &Diag, in initFromDisk() argument
52 return initFromFile(infoFile, Diag, ignoreIfFilesChanged); in initFromDisk()
55 bool FileRemapper::initFromFile(StringRef filePath, DiagnosticsEngine &Diag, in initFromFile() argument
68 return report("Error opening file: " + infoFile, Diag); in initFromFile()
78 Diag); in initFromFile()
85 return report("File does not exist: " + fromFilename, Diag); in initFromFile()
91 return report("File does not exist: " + toFilename, Diag); in initFromFile()
97 return report("File was modified: " + fromFilename, Diag); in initFromFile()
109 bool FileRemapper::flushToDisk(StringRef outputDir, DiagnosticsEngine &Diag) { in flushToDisk() argument
113 return report("Could not create directory: " + outputDir, Diag); in flushToDisk()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Basic/
DDiagnosticError.h22 DiagnosticError(PartialDiagnosticAt Diag) : Diag(std::move(Diag)) {} in DiagnosticError() argument
26 PartialDiagnosticAt &getDiagnostic() { return Diag; } in getDiagnostic()
27 const PartialDiagnosticAt &getDiagnostic() const { return Diag; } in getDiagnostic()
31 static llvm::Error create(SourceLocation Loc, PartialDiagnostic Diag) { in create() argument
33 PartialDiagnosticAt(Loc, std::move(Diag))); in create()
55 PartialDiagnosticAt Diag; variable
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/Interp/
DState.cpp27 if (getEvalStatus().Diag) in FFDiag()
35 if (getEvalStatus().Diag) in FFDiag()
45 if (!getEvalStatus().Diag || !getEvalStatus().Diag->empty()) { in CCEDiag()
70 getEvalStatus().Diag->insert(getEvalStatus().Diag->end(), Diags.begin(), in addNotes()
82 getEvalStatus().Diag->push_back(std::make_pair(Loc, PD)); in addDiag()
83 return getEvalStatus().Diag->back().second; in addDiag()
89 if (EvalStatus.Diag) { in diag()
103 EvalStatus.Diag->clear(); in diag()
104 EvalStatus.Diag->reserve(1 + ExtraNotes + CallStackNotes); in diag()
109 return OptionalDiagnostic(&(*EvalStatus.Diag)[0].second); in diag()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
DLLVMRemarkStreamer.cpp58 LLVMRemarkStreamer::toRemark(const DiagnosticInfoOptimizationBase &Diag) const { in toRemark()
60 R.RemarkType = toRemarkType(static_cast<DiagnosticKind>(Diag.getKind())); in toRemark()
61 R.PassName = Diag.getPassName(); in toRemark()
62 R.RemarkName = Diag.getRemarkName(); in toRemark()
64 GlobalValue::dropLLVMManglingEscape(Diag.getFunction().getName()); in toRemark()
65 R.Loc = toRemarkLocation(Diag.getLocation()); in toRemark()
66 R.Hotness = Diag.getHotness(); in toRemark()
68 for (const DiagnosticInfoOptimizationBase::Argument &Arg : Diag.getArgs()) { in toRemark()
78 void LLVMRemarkStreamer::emit(const DiagnosticInfoOptimizationBase &Diag) { in emit() argument
79 if (!RS.matchesFilter(Diag.getPassName())) in emit()
[all …]

12345678