PrintfFormatString.cpp (212904) | PrintfFormatString.cpp (213681) |
---|---|
1//== PrintfFormatString.cpp - Analysis of printf format strings --*- C++ -*-==// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 181 unchanged lines hidden (view full) --- 190 case 'C': k = ConversionSpecifier::CArg; break; 191 case 'S': k = ConversionSpecifier::SArg; break; 192 // Objective-C. 193 case '@': k = ConversionSpecifier::ObjCObjArg; break; 194 // Glibc specific. 195 case 'm': k = ConversionSpecifier::PrintErrno; break; 196 // FreeBSD format extensions 197 case 'b': if (FormatExtensions) k = ConversionSpecifier::bArg; break; /* check for int and then char * */ | 1//== PrintfFormatString.cpp - Analysis of printf format strings --*- C++ -*-==// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 181 unchanged lines hidden (view full) --- 190 case 'C': k = ConversionSpecifier::CArg; break; 191 case 'S': k = ConversionSpecifier::SArg; break; 192 // Objective-C. 193 case '@': k = ConversionSpecifier::ObjCObjArg; break; 194 // Glibc specific. 195 case 'm': k = ConversionSpecifier::PrintErrno; break; 196 // FreeBSD format extensions 197 case 'b': if (FormatExtensions) k = ConversionSpecifier::bArg; break; /* check for int and then char * */ |
198 case 'r': if (FormatExtensions) k = ConversionSpecifier::xArg; break; 199 case 'y': if (FormatExtensions) k = ConversionSpecifier::iArg; break; |
|
198 case 'D': if (FormatExtensions) k = ConversionSpecifier::DArg; break; /* check for u_char * pointer and a char * string */ 199 } 200 PrintfConversionSpecifier CS(conversionPosition, k); 201 FS.setConversionSpecifier(CS); 202 if (CS.consumesDataArgument() && !FS.usesPositionalArg()) 203 FS.setArgIndex(argIndex++); 204 // FreeBSD extension 205 if (k == ConversionSpecifier::bArg || k == ConversionSpecifier::DArg) --- 420 unchanged lines hidden --- | 200 case 'D': if (FormatExtensions) k = ConversionSpecifier::DArg; break; /* check for u_char * pointer and a char * string */ 201 } 202 PrintfConversionSpecifier CS(conversionPosition, k); 203 FS.setConversionSpecifier(CS); 204 if (CS.consumesDataArgument() && !FS.usesPositionalArg()) 205 FS.setArgIndex(argIndex++); 206 // FreeBSD extension 207 if (k == ConversionSpecifier::bArg || k == ConversionSpecifier::DArg) --- 420 unchanged lines hidden --- |