44 Print::Print(std::ostream &stream,
const std::string &
format)
45 : stream(stream), format(format.c_str()), ptr(format.c_str()), cont(false)
54 : stream(stream), format(format),
ptr(format),
cont(false)
95 len = strcspn(
ptr,
"%\n\r\0");
107 bool end_number =
false;
108 bool have_precision =
false;
112 stream.flags((ios::fmtflags)0);
116 if (*
ptr >=
'0' && *
ptr <=
'9') {
119 }
else if (number > 0)
190 stream <<
"we don't do %n!!!\n";
213 have_precision =
true;
233 number = number * 10 + (*
ptr -
'0');
244 assert(
false &&
"we shouldn't get here");
305 len = strcspn(
ptr,
"%\n\r\0");
Print(std::ostream &stream, const std::string &format)
Overload hash function for BasicBlockRange type.
Bitfield< 31, 29 > format
std::ios::fmtflags saved_flags