[Lldb-commits] [PATCH] Fix FileSpec::GetPath to return null-terminated strings

Zachary Turner zturner at google.com
Thu Feb 26 08:45:22 PST 2015


Windows has it, it just has slightly different behavior.

Anyway, i also recommend StringStream. It's a better, safer wrapper around
the same function and we can encode compiler / platform specific
differences in one location instead of at every callsite.
On Thu, Feb 26, 2015 at 8:32 AM Tamas Berghammer <tberghammer at google.com>
wrote:

> In http://reviews.llvm.org/D7553#122351, @vharron wrote:
>
> > Windows snprintf is nonstandard, I recommend lldb_private::StringStream
>
>
> It is standard since C++11 (not sure about the state of the compiler
> support)
>
>
> http://reviews.llvm.org/D7553
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150226/269257c7/attachment.html>


More information about the lldb-commits mailing list