Remove invalid conversion specifiers from format string checking.

llvm-svn: 94707
This commit is contained in:
Ted Kremenek 2010-01-28 00:17:51 +00:00
parent 80108921be
commit fa784e88e8
2 changed files with 0 additions and 10 deletions

View File

@ -191,11 +191,6 @@ static FormatSpecifierResult ParseFormatSpecifier(printf::FormatStringHandler &H
// Finally, look for the conversion specifier.
ConversionSpecifier::Kind cs;
switch (*I) {
case 'D':
case 'O':
case 'U':
case 'C':
case 'S':
default:
H.HandleInvalidConversionSpecifier(I);
return true;

View File

@ -1160,9 +1160,6 @@ void Sema::CheckPrintfString(const StringLiteral *FExpr,
case 'u':
case 'x':
case 'X':
case 'D':
case 'O':
case 'U':
case 'e':
case 'E':
case 'f':
@ -1172,8 +1169,6 @@ void Sema::CheckPrintfString(const StringLiteral *FExpr,
case 'a':
case 'A':
case 'c':
case 'C':
case 'S':
case 's':
case 'p':
++numConversions;