summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-22 23:10:29 +0000
committerChris Lattner <sabre@nondot.org>2009-08-22 23:10:29 +0000
commitc5a227ddd1fa09cd66e4fd1c0473be5c2b4f8f32 (patch)
tree91d4c4c97128df538b6bf7b9c675708a62a4e086 /include
parentf682f3d019794d4402b73701a06a4bb117f5d5e7 (diff)
downloadllvm-c5a227ddd1fa09cd66e4fd1c0473be5c2b4f8f32.tar.gz
llvm-c5a227ddd1fa09cd66e4fd1c0473be5c2b4f8f32.tar.bz2
llvm-c5a227ddd1fa09cd66e4fd1c0473be5c2b4f8f32.tar.xz
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')
-rw-r--r--include/llvm/Support/raw_ostream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h
index a9d1b5a7a2..c9a8787429 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