Home | History | Annotate | Download | only in Basic

Lines Matching full:diagid

43   unsigned short DiagID;
82 return DiagID < RHS.DiagID;
88 unsigned short DiagID;
149 /// GetDiagInfo - Return the StaticDiagInfoRec entry for the specified DiagID,
151 static const StaticDiagInfoRec *GetDiagInfo(unsigned DiagID) {
157 assert(StaticDiagInfo[i-1].DiagID != StaticDiagInfo[i].DiagID &&
169 StaticDiagInfoRec Find = { DiagID, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0 };
174 Found->DiagID != DiagID)
180 static unsigned GetDefaultDiagMapping(unsigned DiagID) {
181 if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID))
189 llvm::StringRef DiagnosticIDs::getWarningOptionForDiag(unsigned DiagID) {
190 if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID))
196 /// DiagID belongs to, or 0 if no category.
197 unsigned DiagnosticIDs::getCategoryNumberForDiag(unsigned DiagID) {
198 if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID))
240 DiagnosticIDs::getDiagnosticSFINAEResponse(unsigned DiagID) {
241 if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID)) {
259 llvm::StringRef DiagnosticIDs::getName(unsigned DiagID) {
260 if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID))
280 return Found->DiagID;
285 llvm::StringRef DiagnosticIDs::getBriefExplanation(unsigned DiagID) {
286 if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID))
293 llvm::StringRef DiagnosticIDs::getFullExplanation(unsigned DiagID) {
294 if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID))
301 static unsigned getBuiltinDiagClass(unsigned DiagID) {
302 if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID))
321 llvm::StringRef getDescription(unsigned DiagID) const {
322 assert(this && DiagID-DIAG_UPPER_LIMIT < DiagInfo.size() &&
324 return DiagInfo[DiagID-DIAG_UPPER_LIMIT].second;
328 DiagnosticIDs::Level getLevel(unsigned DiagID) const {
329 assert(this && DiagID-DIAG_UPPER_LIMIT < DiagInfo.size() &&
331 return DiagInfo[DiagID-DIAG_UPPER_LIMIT].first;
380 bool DiagnosticIDs::isBuiltinWarningOrExtension(unsigned DiagID) {
381 return DiagID < diag::DIAG_UPPER_LIMIT &&
382 getBuiltinDiagClass(DiagID) != CLASS_ERROR;
387 bool DiagnosticIDs::isBuiltinNote(unsigned DiagID) {
388 return DiagID < diag::DIAG_UPPER_LIMIT &&
389 getBuiltinDiagClass(DiagID) == CLASS_NOTE;
397 bool DiagnosticIDs::isBuiltinExtensionDiag(unsigned DiagID,
399 if (DiagID >= diag::DIAG_UPPER_LIMIT ||
400 getBuiltinDiagClass(DiagID) != CLASS_EXTENSION)
403 EnabledByDefault = GetDefaultDiagMapping(DiagID) != diag::MAP_IGNORE;
409 llvm::StringRef DiagnosticIDs::getDescription(unsigned DiagID) const {
410 if (const StaticDiagInfoRec *Info = GetDiagInfo(DiagID))
412 return CustomDiagInfo->getDescription(DiagID);
419 DiagnosticIDs::getDiagnosticLevel(unsigned DiagID, SourceLocation Loc,
423 if (DiagID >= diag::DIAG_UPPER_LIMIT)
424 return CustomDiagInfo->getLevel(DiagID);
426 unsigned DiagClass = getBuiltinDiagClass(DiagID);
428 return getDiagnosticLevel(DiagID, DiagClass, Loc, Diag, mapping);
438 DiagnosticIDs::getDiagnosticLevel(unsigned DiagID, unsigned DiagClass,
451 unsigned MappingInfo = Diag.getDiagnosticMappingInfo((diag::kind)DiagID,
454 MappingInfo = GetDefaultDiagMapping(DiagID);
455 Diag.setDiagnosticMappingInternal(DiagID, MappingInfo, State, false, false);
468 if (!isBuiltinExtensionDiag(DiagID) || // Not an extension
499 isBuiltinExtensionDiag(DiagID))
529 if (Diag.AllExtensionsSilenced && isBuiltinExtensionDiag(DiagID))
538 DiagID < diag::DIAG_UPPER_LIMIT &&
639 unsigned DiagID = Info.getID();
641 if (DiagID >= diag::DIAG_UPPER_LIMIT) {
643 DiagLevel = CustomDiagInfo->getLevel(DiagID);
648 unsigned DiagClass = getBuiltinDiagClass(DiagID);
652 DiagLevel = getDiagnosticLevel(DiagID, DiagClass, Info.getLocation(),
689 if (isUnrecoverable(DiagID)) {
731 bool DiagnosticIDs::isUnrecoverable(unsigned DiagID) const {
732 if (DiagID >= diag::DIAG_UPPER_LIMIT) {
734 return CustomDiagInfo->getLevel(DiagID) >= DiagnosticIDs::Error;
738 if (getBuiltinDiagClass(DiagID) < CLASS_ERROR)
741 if (DiagID == diag::err_unavailable ||
742 DiagID == diag::err_unavailable_message)
746 if (getCategoryNumberForDiag(DiagID) ==