diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html index 6cfe5428356..2121714db65 100644 --- a/docs/CodingStandards.html +++ b/docs/CodingStandards.html @@ -505,14 +505,14 @@ library. There are two problems with this:

  1. The time to run the static c'tors impacts startup time of - applications—a critical time for gui apps.
  2. + applications—a critical time for GUI apps.
  3. The static c'tors cause the app to pull many extra pages of memory off the - disk: both the code for the static c'tors in each .o file and the small - amount of data that gets touched. In addition, touched/dirty pages put - more pressure on the VM system on low-memory machines.
  4. + disk: both the code for the static c'tors in each .o file and the + small amount of data that gets touched. In addition, touched/dirty pages + put more pressure on the VM system on low-memory machines.
-
+
@@ -527,7 +527,7 @@ library. There are two problems with this:

+DEBUG(dump(DOUT)); @@ -557,17 +557,17 @@ dump(DOUT); -
DEBUG(std::cerr << ...);
 DEBUG(dump(std::cerr));
DOUT << ...;
-dump(DOUT);
std::cerr << "Hello world\n";
void print(std::ostream &Out);
 // ...
 print(std::cerr);
void print(std::ostream &Out);
-void print(std::ostream *Out) { if (Out) print(*Out) }
+      
void print(llvm::OStream Out);1
 // ...
 print(llvm::cerr);
+
+
+
-N.B. The second print method is called by the print -expression. It prevents the execution of the first print method if the -stream is cnull.
- - +

1llvm::OStream is a light-weight class so it should never +be passed by reference. This is important because in some configurations, +DOUT is an rvalue.