On Wed Feb 11 2015 at 11:13:22 AM Greg Clayton <gclay...@apple.com> wrote:

>
> > Operations:
> > strcpy, strncpy, etc         // Use member functions of SmallString /
> StringRef
> > sprintf, snprintf, etc       // Use llvm::raw_ostream
>
> We have StringStream, people should be using that. raw_ostream doesn't
> support all printf style formats. So all sprintf  and snprintf function
> calls should switch to using lldb_private::StreamString.
>

What if llvm::SmallString<> had Format methods that delegated to snprintf
etc?  Then everything would just work, and it would integrate nicely with
the rest of my suggested points such as converting things to StringRef,
SmallVectorImpl, etc.
_______________________________________________
lldb-dev mailing list
lldb-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to