Lines Matching refs:DiagnosticIDs

77     diag::ENUM, DEFAULT_SEVERITY, CLASS, DiagnosticIDs::SFINAE, NOWERROR,      \
176 unsigned DiagnosticIDs::getCategoryNumberForDiag(unsigned DiagID) { in getCategoryNumberForDiag()
218 unsigned DiagnosticIDs::getNumberOfCategories() { in getNumberOfCategories()
225 StringRef DiagnosticIDs::getCategoryNameFromID(unsigned CategoryID) { in getCategoryNameFromID()
233 DiagnosticIDs::SFINAEResponse
234 DiagnosticIDs::getDiagnosticSFINAEResponse(unsigned DiagID) { in getDiagnosticSFINAEResponse()
236 return static_cast<DiagnosticIDs::SFINAEResponse>(Info->SFINAE); in getDiagnosticSFINAEResponse()
255 typedef std::pair<DiagnosticIDs::Level, std::string> DiagDesc;
269 DiagnosticIDs::Level getLevel(unsigned DiagID) const { in getLevel()
275 unsigned getOrCreateDiagID(DiagnosticIDs::Level L, StringRef Message, in getOrCreateDiagID()
276 DiagnosticIDs &Diags) { in getOrCreateDiagID()
299 DiagnosticIDs::DiagnosticIDs() { CustomDiagInfo = nullptr; } in DiagnosticIDs() function in DiagnosticIDs
301 DiagnosticIDs::~DiagnosticIDs() { in ~DiagnosticIDs()
311 unsigned DiagnosticIDs::getCustomDiagID(Level L, StringRef FormatString) { in getCustomDiagID()
322 bool DiagnosticIDs::isBuiltinWarningOrExtension(unsigned DiagID) { in isBuiltinWarningOrExtension()
329 bool DiagnosticIDs::isBuiltinNote(unsigned DiagID) { in isBuiltinNote()
339 bool DiagnosticIDs::isBuiltinExtensionDiag(unsigned DiagID, in isBuiltinExtensionDiag()
350 bool DiagnosticIDs::isDefaultMappingAsError(unsigned DiagID) { in isDefaultMappingAsError()
359 StringRef DiagnosticIDs::getDescription(unsigned DiagID) const { in getDescription()
366 static DiagnosticIDs::Level toLevel(diag::Severity SV) { in toLevel()
369 return DiagnosticIDs::Ignored; in toLevel()
371 return DiagnosticIDs::Remark; in toLevel()
373 return DiagnosticIDs::Warning; in toLevel()
375 return DiagnosticIDs::Error; in toLevel()
377 return DiagnosticIDs::Fatal; in toLevel()
385 DiagnosticIDs::Level
386 DiagnosticIDs::getDiagnosticLevel(unsigned DiagID, SourceLocation Loc, in getDiagnosticLevel()
395 if (DiagClass == CLASS_NOTE) return DiagnosticIDs::Note; in getDiagnosticLevel()
406 DiagnosticIDs::getDiagnosticSeverity(unsigned DiagID, SourceLocation Loc, in getDiagnosticSeverity()
514 StringRef DiagnosticIDs::getWarningOptionForDiag(unsigned DiagID) { in getWarningOptionForDiag()
551 DiagnosticIDs::getDiagnosticsInGroup(diag::Flavor Flavor, StringRef Group, in getDiagnosticsInGroup()
564 void DiagnosticIDs::getAllDiagnostics(diag::Flavor Flavor, in getAllDiagnostics()
571 StringRef DiagnosticIDs::getNearestOption(diag::Flavor Flavor, in getNearestOption()
604 bool DiagnosticIDs::ProcessDiag(DiagnosticsEngine &Diag) const { in ProcessDiag()
611 DiagnosticIDs::Level DiagLevel in ProcessDiag()
616 if (DiagLevel >= DiagnosticIDs::Error) { in ProcessDiag()
625 if (DiagLevel != DiagnosticIDs::Note) { in ProcessDiag()
630 if (Diag.LastDiagLevel == DiagnosticIDs::Fatal) in ProcessDiag()
639 if (DiagLevel >= DiagnosticIDs::Error && in ProcessDiag()
649 if (DiagLevel == DiagnosticIDs::Ignored || in ProcessDiag()
650 (DiagLevel == DiagnosticIDs::Note && in ProcessDiag()
651 Diag.LastDiagLevel == DiagnosticIDs::Ignored)) in ProcessDiag()
654 if (DiagLevel >= DiagnosticIDs::Error) { in ProcessDiag()
670 DiagLevel == DiagnosticIDs::Error) { in ProcessDiag()
681 void DiagnosticIDs::EmitDiag(DiagnosticsEngine &Diag, Level DiagLevel) const { in EmitDiag()
683 assert(DiagLevel != DiagnosticIDs::Ignored && "Cannot emit ignored diagnostics!"); in EmitDiag()
687 if (DiagLevel == DiagnosticIDs::Warning) in EmitDiag()
694 bool DiagnosticIDs::isUnrecoverable(unsigned DiagID) const { in isUnrecoverable()
698 return CustomDiagInfo->getLevel(DiagID) >= DiagnosticIDs::Error; in isUnrecoverable()
716 bool DiagnosticIDs::isARCDiagnostic(unsigned DiagID) { in isARCDiagnostic()
718 return DiagnosticIDs::getCategoryNameFromID(cat).startswith("ARC "); in isARCDiagnostic()