Allow HandleFormatSpecifier() to indicate that no more processing of the format string is desired.

llvm-svn: 94715
This commit is contained in:
Ted Kremenek
2010-01-28 01:00:59 +00:00
parent ba965fb2a7
commit bcbdaea703
2 changed files with 4 additions and 3 deletions

View File

@@ -233,7 +233,8 @@ bool ParseFormatSring(FormatStringHandler &H, const char *I, const char *E) {
if (!FSR.hasValue())
break;
// We have a format specifier. Pass it to the callback.
H.HandleFormatSpecifier(FSR.getValue(), FSR.getStart(), I);
if (!H.HandleFormatSpecifier(FSR.getValue(), FSR.getStart(), I))
return false;
}
assert(I == E && "Format string not exhausted");
return false;