diff options
| author | Hans Wennborg <hans@hanshq.net> | 2011-12-09 11:11:07 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2011-12-09 11:11:07 +0000 |
| commit | a8b042d31a4ad2d5489e9d7d7f93511f1e00ba3e (patch) | |
| tree | 6aa070f50cba909126ecad5da730fe942e3bdca0 /clang/lib/Analysis/PrintfFormatString.cpp | |
| parent | 2027de3be9ed2b8c0d22b077590d347872644693 (diff) | |
| download | bcm5719-llvm-a8b042d31a4ad2d5489e9d7d7f93511f1e00ba3e.tar.gz bcm5719-llvm-a8b042d31a4ad2d5489e9d7d7f93511f1e00ba3e.zip | |
Move definition of ConversionSpecifier::toString() to FormatString.cpp
It's declared in FormatString.h, so it shouldn't be defined in
PrintfFormatString.cpp.
llvm-svn: 146253
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
| -rw-r--r-- | clang/lib/Analysis/PrintfFormatString.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp index 097cc62a6c0..3b8c45b7e29 100644 --- a/clang/lib/Analysis/PrintfFormatString.cpp +++ b/clang/lib/Analysis/PrintfFormatString.cpp @@ -235,46 +235,6 @@ bool clang::analyze_format_string::ParsePrintfString(FormatStringHandler &H, } //===----------------------------------------------------------------------===// -// Methods on ConversionSpecifier. -//===----------------------------------------------------------------------===// -const char *ConversionSpecifier::toString() const { - switch (kind) { - case dArg: return "d"; - case iArg: return "i"; - case oArg: return "o"; - case uArg: return "u"; - case xArg: return "x"; - case XArg: return "X"; - case fArg: return "f"; - case FArg: return "F"; - case eArg: return "e"; - case EArg: return "E"; - case gArg: return "g"; - case GArg: return "G"; - case aArg: return "a"; - case AArg: return "A"; - case cArg: return "c"; - case sArg: return "s"; - case pArg: return "p"; - case nArg: return "n"; - case PercentArg: return "%"; - case ScanListArg: return "["; - case InvalidSpecifier: return NULL; - - // MacOS X unicode extensions. - case CArg: return "C"; - case SArg: return "S"; - - // Objective-C specific specifiers. - case ObjCObjArg: return "@"; - - // GlibC specific specifiers. - case PrintErrno: return "m"; - } - return NULL; -} - -//===----------------------------------------------------------------------===// // Methods on PrintfSpecifier. //===----------------------------------------------------------------------===// |

