1 //===-- ExpressionSourceCode.h ----------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_ExpressionSourceCode_h
11 #define liblldb_ExpressionSourceCode_h
13 #include "lldb/lldb-enumerations.h"
17 namespace lldb_private
20 class ExpressionSourceCode
23 static const char * g_expression_prefix;
25 static ExpressionSourceCode *CreateWrapped (const char *prefix,
28 return new ExpressionSourceCode ("$__lldb_expr",
34 static ExpressionSourceCode *CreateUnwrapped (const char *name,
37 return new ExpressionSourceCode (name,
43 bool NeedsWrapping () const
48 const char *GetName () const
50 return m_name.c_str();
53 bool GetText (std::string &text,
54 lldb::LanguageType wrapping_language,
56 bool static_method) const;
59 ExpressionSourceCode (const char *name,
76 } // namespace lldb_private