diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html index 5b65fbc637c..97e21fa65cc 100644 --- a/docs/CodingStandards.html +++ b/docs/CodingStandards.html @@ -509,7 +509,7 @@ library. There are two problems with this:

more pressure on the VM system on low-memory machines. - +
@@ -520,8 +520,10 @@ library. There are two problems with this:

- - + + @@ -535,6 +537,12 @@ library. There are two problems with this:

+ + + + @@ -552,9 +560,14 @@ library. There are two problems with this:

// ... print(std::cerr); - +print(llvm::cerr); + + +
Old Way
#include "llvm/Support/Streams.h"
DEBUG(std::cerr << ...);
DOUT << ...;
DEBUG(std::cerr << ...);
+DEBUG(dump(std::cerr));
DOUT << ...;
+dump(DOUT);
std::cerr << "Hello world\n";
std::cin >> Var;
llvm::cin >> Var;
N/A
llvm::cnull >> Var;
+
    N.B. Eats up argument Var outputting + nothing.
std::ostream
llvm::OStream
void print(std::ostream &Out);
+void print(std::ostream *Out) { if (Out) print(*Out) }
 // ...
-print(*llvm::cerr.stream());