[cfe-dev] c++ templates

Andrew Sutton andrew.n.sutton at gmail.com
Thu Nov 13 18:55:24 PST 2008


Why doesn't gmail automatically reply to the list?


 know it's just for debugging, but we're moving away from using
>> iostreams for anything in Clang.
>>
>
> Yep, please use [f]printf, or one of the other streams.  <iostream> adds a
> static ctor to the file it is included in, so it is particularly evil.  Here
> are some more thoughts on the matter:
> http://llvm.org/docs/CodingStandards.html#ll_iostream
>
> that said, it is probably better to just use raw_ostream with:
>  llvm::outs() << foo << bar;
>

Got it.

Andrew Sutton
andrew.n.sutton at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20081113/26a3de17/attachment.html>


More information about the cfe-dev mailing list