summaryrefslogtreecommitdiff
path: root/docs/CodingStandards.html
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-12-09 01:27:51 +0000
committerBill Wendling <isanbard@gmail.com>2006-12-09 01:27:51 +0000
commit0f7c10d7b6c553cd92c3abadd7e23c45edbcbfd2 (patch)
treeddaab82ed3d2908b5677ba84c07ad505ea8e763f /docs/CodingStandards.html
parent7f564c02cf46e4b29e7d3594036c5535e2f5cc52 (diff)
downloadllvm-0f7c10d7b6c553cd92c3abadd7e23c45edbcbfd2.tar.gz
llvm-0f7c10d7b6c553cd92c3abadd7e23c45edbcbfd2.tar.bz2
llvm-0f7c10d7b6c553cd92c3abadd7e23c45edbcbfd2.tar.xz
Another example of using the llvm IO streams.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodingStandards.html')
-rw-r--r--docs/CodingStandards.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html
index 40d08383a8..72ca77535d 100644
--- a/docs/CodingStandards.html
+++ b/docs/CodingStandards.html
@@ -547,6 +547,13 @@ library. There are two problems with this:</p>
<td align="left"><pre>std::stringstream</pre></td>
<td align="left"><pre>llvm::StringStream</pre></td>
</tr>
+ <tr>
+ <td align="left"><pre>void print(std::ostream &Out);
+// ...
+print(std::cerr);</pre></td>
+ <td align="left"><pre>void print(std::ostream &Out);
+// ...
+print(*llvm::cerr.stream());</pre></td>
</tbody>
</table>