summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-01-28 01:00:59 +0000
committerTed Kremenek <kremenek@apple.com>2010-01-28 01:00:59 +0000
commitbcbdaea7037c35793d4275347e46b2dc30db285c (patch)
treedf03307746da046211ba8a62b7eeb300b875909e /clang/lib/Analysis
parentba965fb2a70ecde52a6dc87558b70028eb0c93c7 (diff)
downloadbcm5719-llvm-bcbdaea7037c35793d4275347e46b2dc30db285c.tar.gz
bcm5719-llvm-bcbdaea7037c35793d4275347e46b2dc30db285c.zip
Allow HandleFormatSpecifier() to indicate that no more processing of the format string is desired.
llvm-svn: 94715
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r--clang/lib/Analysis/PrintfFormatString.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp
index 9907dc9d42b..1afa9ad2b71 100644
--- a/clang/lib/Analysis/PrintfFormatString.cpp
+++ b/clang/lib/Analysis/PrintfFormatString.cpp
@@ -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;
OpenPOWER on IntegriCloud