diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-01-28 02:02:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-01-28 02:02:59 +0000 |
commit | 08ad1cceb30b2d35b5c751ac8d83c449615e88c0 (patch) | |
tree | 1d0a14980c2aeb17c904920ed8375c02fc066ca3 /clang/lib/Analysis/PrintfFormatString.cpp | |
parent | c968f4475ecd459bccfb810bc40dc62491b4bd7e (diff) | |
download | bcm5719-llvm-08ad1cceb30b2d35b5c751ac8d83c449615e88c0.tar.gz bcm5719-llvm-08ad1cceb30b2d35b5c751ac8d83c449615e88c0.zip |
Rename namespace clang::printf to clang::analyze_printf to avoid problems where the reference to 'printf' is ambiguous.
llvm-svn: 94733
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
-rw-r--r-- | clang/lib/Analysis/PrintfFormatString.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp index 1afa9ad2b71..81752e9c4c3 100644 --- a/clang/lib/Analysis/PrintfFormatString.cpp +++ b/clang/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; |