diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-22 23:10:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-22 23:10:29 +0000 |
commit | c5a227ddd1fa09cd66e4fd1c0473be5c2b4f8f32 (patch) | |
tree | 91d4c4c97128df538b6bf7b9c675708a62a4e086 /include/llvm/Support/raw_ostream.h | |
parent | f682f3d019794d4402b73701a06a4bb117f5d5e7 (diff) | |
download | external_llvm-c5a227ddd1fa09cd66e4fd1c0473be5c2b4f8f32.zip external_llvm-c5a227ddd1fa09cd66e4fd1c0473be5c2b4f8f32.tar.gz external_llvm-c5a227ddd1fa09cd66e4fd1c0473be5c2b4f8f32.tar.bz2 |
add a raw_ostream::indent method, to be used like:
OS.indent(i) << "whatever";
people seem to like indenting things ;-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/raw_ostream.h')
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index a9d1b5a..c9a8787 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -230,6 +230,10 @@ public: // Formatted output, see the format() function in Support/Format.h. raw_ostream &operator<<(const format_object_base &Fmt); + /// indent - Insert 'NumSpaces' spaces. + raw_ostream &indent(unsigned NumSpaces); + + /// Changes the foreground color of text that will be output from this point /// forward. /// @param colors ANSI color to use, the special SAVEDCOLOR can be used to |