diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2010-10-11 08:10:12 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2010-10-11 08:10:12 +0000 |
commit | a439b1697175031d7107049552fe05df636a7d4f (patch) | |
tree | 27e3ed973f708a18a97e4f596d3efd815fb318a6 /contrib/llvm/tools/clang/lib/Analysis | |
parent | f3e9ac8a0e36d292c00b1ccd9b765977050ce24a (diff) | |
download | FreeBSD-src-a439b1697175031d7107049552fe05df636a7d4f.zip FreeBSD-src-a439b1697175031d7107049552fe05df636a7d4f.tar.gz |
Restore the support for the 'r' and the 'y' conversion specifiers, first
added on r208987.
These are undocumented but are part of printf(9).
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Analysis')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Analysis/PrintfFormatString.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/lib/Analysis/PrintfFormatString.cpp b/contrib/llvm/tools/clang/lib/Analysis/PrintfFormatString.cpp index 21c4ff3..10589e6 100644 --- a/contrib/llvm/tools/clang/lib/Analysis/PrintfFormatString.cpp +++ b/contrib/llvm/tools/clang/lib/Analysis/PrintfFormatString.cpp @@ -195,6 +195,8 @@ static PrintfSpecifierResult ParsePrintfSpecifier(FormatStringHandler &H, case 'm': k = ConversionSpecifier::PrintErrno; break; // FreeBSD format extensions case 'b': if (FormatExtensions) k = ConversionSpecifier::bArg; break; /* check for int and then char * */ + case 'r': if (FormatExtensions) k = ConversionSpecifier::xArg; break; + case 'y': if (FormatExtensions) k = ConversionSpecifier::iArg; break; case 'D': if (FormatExtensions) k = ConversionSpecifier::DArg; break; /* check for u_char * pointer and a char * string */ } PrintfConversionSpecifier CS(conversionPosition, k); |