Lines Matching refs:DiagnosticSeverity
152 assert(severity != DiagnosticSeverity::Note && in attachNote()
161 std::make_unique<Diagnostic>(*noteLoc, DiagnosticSeverity::Note)); in attachNote()
231 if (diag.getSeverity() != DiagnosticSeverity::Error) in emit()
270 assert(diag.getSeverity() != DiagnosticSeverity::Note && in emit()
279 emitDiag(Location location, DiagnosticSeverity severity, const Twine &message) { in emitDiag()
303 return emitDiag(loc, DiagnosticSeverity::Error, message); in emitError()
311 return emitDiag(loc, DiagnosticSeverity::Warning, message); in emitWarning()
319 return emitDiag(loc, DiagnosticSeverity::Remark, message); in emitRemark()
404 static llvm::SourceMgr::DiagKind getDiagKind(DiagnosticSeverity kind) { in getDiagKind()
406 case DiagnosticSeverity::Note: in getDiagKind()
408 case DiagnosticSeverity::Warning: in getDiagKind()
410 case DiagnosticSeverity::Error: in getDiagKind()
412 case DiagnosticSeverity::Remark: in getDiagKind()
433 DiagnosticSeverity kind, in emitDiagnostic()
479 emitDiagnostic(loc, "called from", DiagnosticSeverity::Note); in emitDiagnostic()
527 DiagnosticSeverity kind;
558 static StringRef getDiagKindStr(DiagnosticSeverity kind) { in getDiagKindStr()
560 case DiagnosticSeverity::Note: in getDiagKindStr()
562 case DiagnosticSeverity::Warning: in getDiagKindStr()
564 case DiagnosticSeverity::Error: in getDiagKindStr()
566 case DiagnosticSeverity::Remark: in getDiagKindStr()
615 DiagnosticSeverity kind; in computeExpectedDiags()
617 kind = DiagnosticSeverity::Error; in computeExpectedDiags()
619 kind = DiagnosticSeverity::Warning; in computeExpectedDiags()
621 kind = DiagnosticSeverity::Remark; in computeExpectedDiags()
624 kind = DiagnosticSeverity::Note; in computeExpectedDiags()
723 DiagnosticSeverity::Error); in process()
730 DiagnosticSeverity kind) { in process()
763 DiagnosticSeverity::Error); in process()
859 case DiagnosticSeverity::Error: in print()
862 case DiagnosticSeverity::Warning: in print()
865 case DiagnosticSeverity::Note: in print()
868 case DiagnosticSeverity::Remark: in print()