@@ -82,9 +82,9 @@ DiagnosticState::DiagnosticState() {
82
82
#define ERROR (ID, Category, Options, Text, Signature ) \
83
83
perDiagnosticState[LocalDiagID::ID] = \
84
84
DiagnosticOptions::Options == DiagnosticOptions::Fatal ? Behavior::Fatal \
85
- : Behavior::Err ;
85
+ : Behavior::Error ;
86
86
#define WARNING (ID, Category, Options, Text, Signature ) \
87
- perDiagnosticState[LocalDiagID::ID] = Behavior::Warn ;
87
+ perDiagnosticState[LocalDiagID::ID] = Behavior::Warning ;
88
88
#define NOTE (ID, Category, Options, Text, Signature ) \
89
89
perDiagnosticState[LocalDiagID::ID] = Behavior::Note;
90
90
#include " swift/AST/DiagnosticsAll.def"
@@ -468,12 +468,12 @@ static DiagnosticKind toDiagnosticKind(DiagnosticState::Behavior behavior) {
468
468
llvm_unreachable (" unspecified behavior" );
469
469
case DiagnosticState::Behavior::Ignore:
470
470
llvm_unreachable (" trying to map an ignored diagnostic" );
471
- case DiagnosticState::Behavior::Err :
471
+ case DiagnosticState::Behavior::Error :
472
472
case DiagnosticState::Behavior::Fatal:
473
473
return DiagnosticKind::Error;
474
474
case DiagnosticState::Behavior::Note:
475
475
return DiagnosticKind::Note;
476
- case DiagnosticState::Behavior::Warn :
476
+ case DiagnosticState::Behavior::Warning :
477
477
return DiagnosticKind::Warning;
478
478
}
479
479
}
@@ -483,7 +483,7 @@ DiagnosticState::Behavior DiagnosticState::determineBehavior(DiagID id) {
483
483
if (lvl == Behavior::Fatal) {
484
484
fatalErrorOccurred = true ;
485
485
anyErrorOccurred = true ;
486
- } else if (lvl == Behavior::Err ) {
486
+ } else if (lvl == Behavior::Error ) {
487
487
anyErrorOccurred = true ;
488
488
}
489
489
@@ -507,7 +507,7 @@ DiagnosticState::Behavior DiagnosticState::determineBehavior(DiagID id) {
507
507
return set (Behavior::Ignore);
508
508
}
509
509
510
- if (behavior == Behavior::Warn && ignoreAllWarnings)
510
+ if (behavior == Behavior::Warning && ignoreAllWarnings)
511
511
return set (Behavior::Ignore);
512
512
513
513
return set (behavior);
0 commit comments