[llvm-commits] [llvm] r77010 - /llvm/trunk/docs/CodingStandards.html

Chris Lattner clattner at apple.com
Fri Jul 24 16:46:31 PDT 2009


On Jul 24, 2009, at 4:04 PM, Daniel Dunbar wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=77010&view=rev
> Log:
> CodingStandards: Emphasize use of raw_ostream more.
> - Chris, please approve.

looks good, one tweak:

> +<!--  
> _______________________________________________________________________ 
>  -->
> +<div class="doc_subsubsection">
> +  <a name="ll_raw_ostream">Use <tt>raw_ostream</tt></a>
> +</div>
> +
> +<div class="doc_text">
> +
> +<p>LLVM includes a lightweight, simple, and efficient stream  
> implementation
> +in <tt>llvm/Support/raw_ostream.h</tt> which provides all of the  
> common features
> +of <tt>std::iostream</tt>.  All new code should use  
> <tt>raw_ostream</tt> instead

it provides all the common features of *ostream*.  It doesn't do  
input. :)

-Chris



More information about the llvm-commits mailing list