@@ -893,13 +893,13 @@ unsigned DiagnosticVerifier::parseExpectedDiagInfo(
893
893
addError (CheckStr.data (),
894
894
" each verified diagnostic may only have one "
895
895
" {{documentation-file=<#notes#>}} declaration" );
896
- return 0 ;
896
+ continue ;
897
897
}
898
898
899
899
// Trim 'documentation-file='.
900
900
StringRef name = CheckStr.substr (categoryDocFileSpecifier.size ());
901
901
Expected.DocumentationFile = {OpenLoc, CloseLoc, name};
902
- return 0 ;
902
+ continue ;
903
903
}
904
904
905
905
// This wasn't a documentation file specifier, so it must be a fix-it.
@@ -914,7 +914,7 @@ unsigned DiagnosticVerifier::parseExpectedDiagInfo(
914
914
}
915
915
916
916
Expected.noneMarkerStartLoc = CheckStr.data () - 2 ;
917
- return 0 ;
917
+ continue ;
918
918
}
919
919
920
920
if (Expected.noneMarkerStartLoc ) {
@@ -928,7 +928,7 @@ unsigned DiagnosticVerifier::parseExpectedDiagInfo(
928
928
addError (CheckStr.data (), Twine (" expected fix-it verification within "
929
929
" braces; example: '1-2=text' or '" ) +
930
930
fixitExpectationNoneString + Twine (" '" ));
931
- return 0 ;
931
+ continue ;
932
932
}
933
933
934
934
// Parse the pieces of the fix-it.
@@ -940,15 +940,15 @@ unsigned DiagnosticVerifier::parseExpectedDiagInfo(
940
940
parseExpectedFixItRange (CheckStr, Expected.LineNo )) {
941
941
FixIt.Range = range.value ();
942
942
} else {
943
- return 0 ;
943
+ continue ;
944
944
}
945
945
946
946
if (!CheckStr.empty () && CheckStr.front () == ' =' ) {
947
947
CheckStr = CheckStr.drop_front ();
948
948
} else {
949
949
addError (CheckStr.data (),
950
950
" expected '=' after range in fix-it verification" );
951
- return 0 ;
951
+ continue ;
952
952
}
953
953
954
954
// Translate literal "\\n" into '\n', inefficiently.
0 commit comments