summaryrefslogtreecommitdiffstats
path: root/contrib/llvm
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-10-11 08:10:12 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-10-11 08:10:12 +0000
commita439b1697175031d7107049552fe05df636a7d4f (patch)
tree27e3ed973f708a18a97e4f596d3efd815fb318a6 /contrib/llvm
parentf3e9ac8a0e36d292c00b1ccd9b765977050ce24a (diff)
downloadFreeBSD-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')
-rw-r--r--contrib/llvm/tools/clang/lib/Analysis/PrintfFormatString.cpp2
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);
OpenPOWER on IntegriCloud