From 14f1b3e8826ce43b978db93a62d1166055db5394 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 2 Jan 2017 19:26:05 +0000 Subject: Vendor import of lldb trunk r290819: https://llvm.org/svn/llvm-project/lldb/trunk@290819 --- .../Python/PythonExceptionState.h | 55 +++++++++------------- 1 file changed, 21 insertions(+), 34 deletions(-) (limited to 'source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h') diff --git a/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h b/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h index c74e52b9ef56..20f4b4c6329d 100644 --- a/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h +++ b/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h @@ -14,54 +14,41 @@ #include "PythonDataObjects.h" -namespace lldb_private -{ +namespace lldb_private { -class PythonExceptionState -{ - public: - explicit PythonExceptionState(bool restore_on_exit); - ~PythonExceptionState(); +class PythonExceptionState { +public: + explicit PythonExceptionState(bool restore_on_exit); + ~PythonExceptionState(); - void - Acquire(bool restore_on_exit); + void Acquire(bool restore_on_exit); - void - Restore(); + void Restore(); - void - Discard(); + void Discard(); - void - Reset(); + void Reset(); - static bool - HasErrorOccurred(); + static bool HasErrorOccurred(); - bool - IsError() const; + bool IsError() const; - PythonObject - GetType() const; + PythonObject GetType() const; - PythonObject - GetValue() const; + PythonObject GetValue() const; - PythonObject - GetTraceback() const; + PythonObject GetTraceback() const; - std::string - Format() const; + std::string Format() const; - private: - std::string - ReadBacktrace() const; +private: + std::string ReadBacktrace() const; - bool m_restore_on_exit; + bool m_restore_on_exit; - PythonObject m_type; - PythonObject m_value; - PythonObject m_traceback; + PythonObject m_type; + PythonObject m_value; + PythonObject m_traceback; }; } -- cgit v1.2.3