• Home
  • Raw
  • Download

Lines Matching refs:DiagnosticIDs

72     diag::ENUM, DEFAULT_SEVERITY, CLASS, DiagnosticIDs::SFINAE, NOWERROR,      \
175 unsigned DiagnosticIDs::getCategoryNumberForDiag(unsigned DiagID) { in getCategoryNumberForDiag()
217 unsigned DiagnosticIDs::getNumberOfCategories() { in getNumberOfCategories()
224 StringRef DiagnosticIDs::getCategoryNameFromID(unsigned CategoryID) { in getCategoryNameFromID()
232 DiagnosticIDs::SFINAEResponse
233 DiagnosticIDs::getDiagnosticSFINAEResponse(unsigned DiagID) { in getDiagnosticSFINAEResponse()
235 return static_cast<DiagnosticIDs::SFINAEResponse>(Info->SFINAE); in getDiagnosticSFINAEResponse()
254 typedef std::pair<DiagnosticIDs::Level, std::string> DiagDesc;
268 DiagnosticIDs::Level getLevel(unsigned DiagID) const { in getLevel()
274 unsigned getOrCreateDiagID(DiagnosticIDs::Level L, StringRef Message, in getOrCreateDiagID()
275 DiagnosticIDs &Diags) { in getOrCreateDiagID()
298 DiagnosticIDs::DiagnosticIDs() { CustomDiagInfo = nullptr; } in DiagnosticIDs() function in DiagnosticIDs
300 DiagnosticIDs::~DiagnosticIDs() { in ~DiagnosticIDs()
310 unsigned DiagnosticIDs::getCustomDiagID(Level L, StringRef FormatString) { in getCustomDiagID()
321 bool DiagnosticIDs::isBuiltinWarningOrExtension(unsigned DiagID) { in isBuiltinWarningOrExtension()
328 bool DiagnosticIDs::isBuiltinNote(unsigned DiagID) { in isBuiltinNote()
338 bool DiagnosticIDs::isBuiltinExtensionDiag(unsigned DiagID, in isBuiltinExtensionDiag()
349 bool DiagnosticIDs::isDefaultMappingAsError(unsigned DiagID) { in isDefaultMappingAsError()
358 StringRef DiagnosticIDs::getDescription(unsigned DiagID) const { in getDescription()
364 static DiagnosticIDs::Level toLevel(diag::Severity SV) { in toLevel()
367 return DiagnosticIDs::Ignored; in toLevel()
369 return DiagnosticIDs::Remark; in toLevel()
371 return DiagnosticIDs::Warning; in toLevel()
373 return DiagnosticIDs::Error; in toLevel()
375 return DiagnosticIDs::Fatal; in toLevel()
383 DiagnosticIDs::Level
384 DiagnosticIDs::getDiagnosticLevel(unsigned DiagID, SourceLocation Loc, in getDiagnosticLevel()
391 if (DiagClass == CLASS_NOTE) return DiagnosticIDs::Note; in getDiagnosticLevel()
402 DiagnosticIDs::getDiagnosticSeverity(unsigned DiagID, SourceLocation Loc, in getDiagnosticSeverity()
516 StringRef DiagnosticIDs::getWarningOptionForDiag(unsigned DiagID) { in getWarningOptionForDiag()
535 bool DiagnosticIDs::getDiagnosticsInGroup( in getDiagnosticsInGroup()
549 void DiagnosticIDs::getAllDiagnostics( in getAllDiagnostics()
555 StringRef DiagnosticIDs::getNearestWarningOption(StringRef Group) { in getNearestWarningOption()
580 bool DiagnosticIDs::ProcessDiag(DiagnosticsEngine &Diag) const { in ProcessDiag()
590 DiagnosticIDs::Level DiagLevel in ProcessDiag()
593 if (DiagLevel != DiagnosticIDs::Note) { in ProcessDiag()
598 if (Diag.LastDiagLevel == DiagnosticIDs::Fatal) in ProcessDiag()
605 if (DiagLevel >= DiagnosticIDs::Error) { in ProcessDiag()
614 if (DiagLevel >= DiagnosticIDs::Error && in ProcessDiag()
625 if (DiagLevel == DiagnosticIDs::Ignored || in ProcessDiag()
626 (DiagLevel == DiagnosticIDs::Note && in ProcessDiag()
627 Diag.LastDiagLevel == DiagnosticIDs::Ignored)) in ProcessDiag()
630 if (DiagLevel >= DiagnosticIDs::Error) { in ProcessDiag()
646 DiagLevel == DiagnosticIDs::Error) { in ProcessDiag()
657 void DiagnosticIDs::EmitDiag(DiagnosticsEngine &Diag, Level DiagLevel) const { in EmitDiag()
659 assert(DiagLevel != DiagnosticIDs::Ignored && "Cannot emit ignored diagnostics!"); in EmitDiag()
663 if (DiagLevel == DiagnosticIDs::Warning) in EmitDiag()
670 bool DiagnosticIDs::isUnrecoverable(unsigned DiagID) const { in isUnrecoverable()
673 return CustomDiagInfo->getLevel(DiagID) >= DiagnosticIDs::Error; in isUnrecoverable()
691 bool DiagnosticIDs::isARCDiagnostic(unsigned DiagID) { in isARCDiagnostic()
693 return DiagnosticIDs::getCategoryNameFromID(cat).startswith("ARC "); in isARCDiagnostic()