[LLVMdev] #include <iostream>

Chris Lattner sabre at nondot.org
Thu Dec 7 17:35:17 PST 2006


On Thu, 7 Dec 2006, Bill Wendling wrote:

> With the newest patches to LLVM, there should be no reason for having
> "#include <iostream>" in any library source code file, except for lib/
> Support/Streams.cpp. Please use the following instead:
>
> OLD                NEW
> ---                ---
> std::ostream       llvm::OStream
> std::istream       llvm::IStream
> std::cerr          llvm::cerr
> std::cerr          llvm::cout
> std::cin           llvm::cin

Nice!  Can you add this to the coding standard guide when you get a 
chance?

Thanks,

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list