aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/PrintfFormatString.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-01-28 02:02:59 +0000
committerTed Kremenek <kremenek@apple.com>2010-01-28 02:02:59 +0000
commitd2dcece5882215e92a80bff8a7b7fd2fd81d7086 (patch)
treec1fa6f66fdea3667d55e4e0aa151e52bd51d8c96 /lib/Analysis/PrintfFormatString.cpp
parent41d8903731782ee85ee2b19734008b006e01c76f (diff)
Rename namespace clang::printf to clang::analyze_printf to avoid problems where the reference to 'printf' is ambiguous.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PrintfFormatString.cpp')
-rw-r--r--lib/Analysis/PrintfFormatString.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/PrintfFormatString.cpp b/lib/Analysis/PrintfFormatString.cpp
index 1afa9ad2b7..81752e9c4c 100644
--- a/lib/Analysis/PrintfFormatString.cpp
+++ b/lib/Analysis/PrintfFormatString.cpp
@@ -15,7 +15,7 @@
#include "clang/Analysis/Analyses/PrintfFormatString.h"
using namespace clang;
-using namespace printf;
+using namespace analyze_printf;
namespace {
class FormatSpecifierResult {
@@ -26,7 +26,7 @@ public:
FormatSpecifierResult(bool err = false)
: Start(0), HasError(err) {}
FormatSpecifierResult(const char *start,
- const printf::FormatSpecifier &fs)
+ const FormatSpecifier &fs)
: FS(fs), Start(start), HasError(false) {}
@@ -37,7 +37,7 @@ public:
assert(hasValue());
return FS;
}
- const printf::FormatSpecifier &getValue() { return FS; }
+ const FormatSpecifier &getValue() { return FS; }
};
} // end anonymous namespace
@@ -81,7 +81,7 @@ static OptionalAmount ParseAmount(const char *&Beg, const char *E) {
return OptionalAmount();
}
-static FormatSpecifierResult ParseFormatSpecifier(printf::FormatStringHandler &H,
+static FormatSpecifierResult ParseFormatSpecifier(FormatStringHandler &H,
const char *&Beg, const char *E) {
const char *I = Beg;