CPPLanguageRuntime.h revision b66cd074ec097b5b0a6f2ce292f5072aa1217ca6
1//===-- CPPLanguageRuntime.h ---------------------------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10#ifndef liblldb_CPPLanguageRuntime_h_ 11#define liblldb_CPPLanguageRuntime_h_ 12 13// C Includes 14// C++ Includes 15// Other libraries and framework includes 16// Project includes 17#include "lldb/Core/PluginInterface.h" 18#include "lldb/lldb-private.h" 19#include "lldb/Target/LanguageRuntime.h" 20 21namespace lldb_private { 22 23class CPPLanguageRuntime : 24 public LanguageRuntime 25{ 26public: 27 virtual 28 ~CPPLanguageRuntime(); 29 30 virtual lldb::LanguageType 31 GetLanguageType () const 32 { 33 return lldb::eLanguageTypeC_plus_plus; 34 } 35 36 virtual bool 37 IsVTableName (const char *name) = 0; 38 39 virtual bool 40 GetObjectDescription (Stream &str, ValueObject &object, ExecutionContextScope *exe_scope); 41 42protected: 43 //------------------------------------------------------------------ 44 // Classes that inherit from CPPLanguageRuntime can see and modify these 45 //------------------------------------------------------------------ 46 CPPLanguageRuntime(Process *process); 47private: 48 DISALLOW_COPY_AND_ASSIGN (CPPLanguageRuntime); 49}; 50 51} // namespace lldb_private 52 53#endif // liblldb_CPPLanguageRuntime_h_ 54