Lines Matching refs:diag
61 diag::Flavor getFlavor() const { in getFlavor()
62 return Class == CLASS_REMARK ? diag::Flavor::Remark in getFlavor()
63 : diag::Flavor::WarningOrError; in getFlavor()
77 diag::ENUM, DEFAULT_SEVERITY, CLASS, DiagnosticIDs::SFINAE, NOWERROR, \
112 using namespace diag; in GetDiagInfo()
159 diag::Severity::Fatal, /*IsUser=*/false, /*IsPragma=*/false); in GetDefaultDiagMapping()
162 Info.setSeverity((diag::Severity)StaticInfo->DefaultSeverity); in GetDefaultDiagMapping()
165 assert(Info.getSeverity() == diag::Severity::Warning && in GetDefaultDiagMapping()
198 DiagnosticsEngine::DiagState::getOrAddMapping(diag::kind Diag) { in getOrAddMapping()
253 namespace diag { namespace
313 CustomDiagInfo = new diag::CustomDiagInfo(); in getCustomDiagID()
323 return DiagID < diag::DIAG_UPPER_LIMIT && in isBuiltinWarningOrExtension()
330 return DiagID < diag::DIAG_UPPER_LIMIT && in isBuiltinNote()
341 if (DiagID >= diag::DIAG_UPPER_LIMIT || in isBuiltinExtensionDiag()
346 GetDefaultDiagMapping(DiagID).getSeverity() != diag::Severity::Ignored; in isBuiltinExtensionDiag()
351 if (DiagID >= diag::DIAG_UPPER_LIMIT) in isDefaultMappingAsError()
354 return GetDefaultDiagMapping(DiagID).getSeverity() == diag::Severity::Error; in isDefaultMappingAsError()
366 static DiagnosticIDs::Level toLevel(diag::Severity SV) { in toLevel()
368 case diag::Severity::Ignored: in toLevel()
370 case diag::Severity::Remark: in toLevel()
372 case diag::Severity::Warning: in toLevel()
374 case diag::Severity::Error: in toLevel()
376 case diag::Severity::Fatal: in toLevel()
389 if (DiagID >= diag::DIAG_UPPER_LIMIT) { in getDiagnosticLevel()
405 diag::Severity
412 diag::Severity Result = diag::Severity::Fatal; in getDiagnosticSeverity()
419 DiagnosticMapping &Mapping = State->getOrAddMapping((diag::kind)DiagID); in getDiagnosticSeverity()
422 if (Mapping.getSeverity() != diag::Severity()) in getDiagnosticSeverity()
426 if (Diag.EnableAllWarnings && Result == diag::Severity::Ignored && in getDiagnosticSeverity()
428 Result = diag::Severity::Warning; in getDiagnosticSeverity()
436 return diag::Severity::Ignored; in getDiagnosticSeverity()
444 if (Result == diag::Severity::Ignored) in getDiagnosticSeverity()
449 if (Result == diag::Severity::Warning && Diag.IgnoreAllWarnings) in getDiagnosticSeverity()
450 return diag::Severity::Ignored; in getDiagnosticSeverity()
453 if (Result == diag::Severity::Warning) { in getDiagnosticSeverity()
455 Result = diag::Severity::Error; in getDiagnosticSeverity()
460 if (Result == diag::Severity::Error) { in getDiagnosticSeverity()
462 Result = diag::Severity::Fatal; in getDiagnosticSeverity()
475 return diag::Severity::Ignored; in getDiagnosticSeverity()
516 static bool getDiagnosticsInGroup(diag::Flavor Flavor, in getDiagnosticsInGroup()
518 SmallVectorImpl<diag::kind> &Diags) { in getDiagnosticsInGroup()
522 return Flavor == diag::Flavor::Remark; in getDiagnosticsInGroup()
545 DiagnosticIDs::getDiagnosticsInGroup(diag::Flavor Flavor, StringRef Group, in getDiagnosticsInGroup()
546 SmallVectorImpl<diag::kind> &Diags) const { in getDiagnosticsInGroup()
558 void DiagnosticIDs::getAllDiagnostics(diag::Flavor Flavor, in getAllDiagnostics()
559 SmallVectorImpl<diag::kind> &Diags) const { in getAllDiagnostics()
565 StringRef DiagnosticIDs::getNearestOption(diag::Flavor Flavor, in getNearestOption()
579 llvm::SmallVector<diag::kind, 8> Diags; in getNearestOption()
665 Diag.SetDelayedDiagnostic(diag::fatal_too_many_errors); in ProcessDiag()
689 if (DiagID >= diag::DIAG_UPPER_LIMIT) { in isUnrecoverable()
699 if (DiagID == diag::err_unavailable || in isUnrecoverable()
700 DiagID == diag::err_unavailable_message) in isUnrecoverable()