diff options
Diffstat (limited to 'lldb/source/Utility')
| -rw-r--r-- | lldb/source/Utility/Stream.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Utility/Stream.cpp b/lldb/source/Utility/Stream.cpp index 89dce9f..e9632c3 100644 --- a/lldb/source/Utility/Stream.cpp +++ b/lldb/source/Utility/Stream.cpp @@ -202,6 +202,14 @@ void Stream::IndentLess(unsigned amount) {      m_indent_level = 0;  } +// Create an indentation scope that restores the original indent level when the +// object goes out of scope (RAII). +Stream::IndentScope Stream::MakeIndentScope(unsigned indent_amount) { +  IndentScope indent_scope(*this); +  IndentMore(indent_amount); +  return indent_scope; +} +  // Get the address size in bytes  uint32_t Stream::GetAddressByteSize() const { return m_addr_size; }  | 
