aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/PrintfFormatString.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-02-04 20:46:58 +0000
committerTed Kremenek <kremenek@apple.com>2010-02-04 20:46:58 +0000
commit74d56a168966ff015824279a24aaf566180ed97d (patch)
treec1a354f985e441cdbc6b44fc75ffbcb7cd901dca /lib/Analysis/PrintfFormatString.cpp
parent789b1f640205e81b5af250693246120f1ce9d147 (diff)
Move ParseFormatString() and FormatStringHandler back into the analyze_printf namespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PrintfFormatString.cpp')
-rw-r--r--lib/Analysis/PrintfFormatString.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Analysis/PrintfFormatString.cpp b/lib/Analysis/PrintfFormatString.cpp
index 35c620aded..6e603faf72 100644
--- a/lib/Analysis/PrintfFormatString.cpp
+++ b/lib/Analysis/PrintfFormatString.cpp
@@ -18,6 +18,7 @@
using clang::analyze_printf::FormatSpecifier;
using clang::analyze_printf::OptionalAmount;
using clang::analyze_printf::ArgTypeResult;
+using clang::analyze_printf::FormatStringHandler;
using namespace clang;
namespace {
@@ -87,7 +88,8 @@ static OptionalAmount ParseAmount(const char *&Beg, const char *E) {
}
static FormatSpecifierResult ParseFormatSpecifier(FormatStringHandler &H,
- const char *&Beg, const char *E) {
+ const char *&Beg,
+ const char *E) {
using namespace clang::analyze_printf;
@@ -241,7 +243,7 @@ static FormatSpecifierResult ParseFormatSpecifier(FormatStringHandler &H,
return FormatSpecifierResult(Start, FS);
}
-bool clang::ParseFormatString(FormatStringHandler &H,
+bool clang::analyze_printf::ParseFormatString(FormatStringHandler &H,
const char *I, const char *E) {
// Keep looking for a format specifier until we have exhausted the string.
while (I != E) {