diff options
Diffstat (limited to 'include/lldb/Expression/ExpressionTypeSystemHelper.h')
-rw-r--r-- | include/lldb/Expression/ExpressionTypeSystemHelper.h | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/include/lldb/Expression/ExpressionTypeSystemHelper.h b/include/lldb/Expression/ExpressionTypeSystemHelper.h index cb560c9b5a42..20a5e67cf9b7 100644 --- a/include/lldb/Expression/ExpressionTypeSystemHelper.h +++ b/include/lldb/Expression/ExpressionTypeSystemHelper.h @@ -1,4 +1,5 @@ -//===-- ExpressionTypeSystemHelper.h ---------------------------------*- C++ -*-===// +//===-- ExpressionTypeSystemHelper.h ---------------------------------*- C++ +//-*-===// // // The LLVM Compiler Infrastructure // @@ -12,42 +13,37 @@ #include "llvm/Support/Casting.h" -namespace lldb_private -{ +namespace lldb_private { //---------------------------------------------------------------------- -/// @class ExpressionTypeSystemHelper ExpressionTypeSystemHelper.h "lldb/Expression/ExpressionTypeSystemHelper.h" -/// @brief A helper object that the Expression can pass to its ExpressionParser to provide generic information that -/// any type of expression will need to supply. It's only job is to support dyn_cast so that the expression parser +/// @class ExpressionTypeSystemHelper ExpressionTypeSystemHelper.h +/// "lldb/Expression/ExpressionTypeSystemHelper.h" +/// @brief A helper object that the Expression can pass to its ExpressionParser +/// to provide generic information that +/// any type of expression will need to supply. It's only job is to support +/// dyn_cast so that the expression parser /// can cast it back to the requisite specific type. /// //---------------------------------------------------------------------- -class ExpressionTypeSystemHelper -{ +class ExpressionTypeSystemHelper { public: - enum LLVMCastKind { - eKindClangHelper, - eKindSwiftHelper, - eKindGoHelper, - kNumKinds - }; - - LLVMCastKind getKind() const { return m_kind; } - - ExpressionTypeSystemHelper (LLVMCastKind kind) : - m_kind(kind) - { - } - - ~ExpressionTypeSystemHelper () {} + enum LLVMCastKind { + eKindClangHelper, + eKindSwiftHelper, + eKindGoHelper, + kNumKinds + }; -protected: - LLVMCastKind m_kind; -}; + LLVMCastKind getKind() const { return m_kind; } + ExpressionTypeSystemHelper(LLVMCastKind kind) : m_kind(kind) {} + ~ExpressionTypeSystemHelper() {} +protected: + LLVMCastKind m_kind; +}; } // namespace lldb_private |