llvm-project/lldb/source/API
Jim Ingham 151c032c86 This patch makes Clang-independent base classes for all the expression types that lldb currently vends.
Before we had:

ClangFunction
ClangUtilityFunction
ClangUserExpression

and code all over in lldb that explicitly made Clang-based expressions. This patch adds an Expression 
base class, and three pure virtual implementations for the Expression kinds:

FunctionCaller
UtilityFunction
UserExpression

You can request one of these expression types from the Target using the Get<ExpressionType>ForLanguage. 
The Target will then consult all the registered TypeSystem plugins, and if the type system that matches 
the language can make an expression of that kind, it will do so and return it.

Because all of the real expression types need to communicate with their ExpressionParser in a uniform way, 
I also added a ExpressionTypeSystemHelper class that expressions generically can vend, and a ClangExpressionHelper 
that encapsulates the operations that the ClangExpressionParser needs to perform on the ClangExpression types. 
Then each of the Clang* expression kinds constructs the appropriate helper to do what it needs.

The patch also fixes a wart in the UtilityFunction that to use it you had to create a parallel FunctionCaller 
to actually call the function made by the UtilityFunction. Now the UtilityFunction can be asked to vend a 
FunctionCaller that will run its function. This cleaned up a lot of boiler plate code using UtilityFunctions.

Note, in this patch all the expression types explicitly depend on the LLVM JIT and IR, and all the common 
JIT running code is in the FunctionCaller etc base classes. At some point we could also abstract that dependency 
but I don't see us adding another back end in the near term, so I'll leave that exercise till it is actually necessary.

llvm-svn: 247720
2015-09-15 21:13:50 +00:00
..
CMakeLists.txt Only export public symbols with the cmake build. 2015-09-04 00:00:41 +00:00
Makefile Add some missing defines that are already present in the cmake side. 2014-03-12 10:35:00 +00:00
SBAddress.cpp Reduce header footprint of Target.h 2015-03-03 19:23:09 +00:00
SBAttachInfo.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBBlock.cpp Make many mangled functions that might demangle a name be allowed to specify a language to use in order to soon support Pascal and Java demangling. Dawn Perchik will take care of making this so. 2015-07-08 22:32:23 +00:00
SBBreakpoint.cpp Add the ability to tag one or more breakpoints with a name. These 2014-12-16 23:40:14 +00:00
SBBreakpointLocation.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
SBBroadcaster.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
SBCommandInterpreter.cpp Convert the ScriptInterpreter system to a plugin-based one. 2015-07-30 20:28:07 +00:00
SBCommandReturnObject.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
SBCommunication.cpp Create a ConnectionGenericFile class for Windows. 2014-10-06 21:23:09 +00:00
SBCompileUnit.cpp Add APIs on SBFunction and SBCompileUnit to inquire about the language type that the function/compile unit is defined in 2014-11-17 23:06:20 +00:00
SBData.cpp Included <inttypes.h> in a few headers that were 2014-04-19 03:09:28 +00:00
SBDebugger.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBDeclaration.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
SBError.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
SBEvent.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBExecutionContext.cpp This adds a "batch mode" to lldb kinda like the gdb batch mode. It will quit the debugger 2014-10-14 01:20:07 +00:00
SBExpressionOptions.cpp Allow expresions to have unique expression prefixes: 2015-05-27 22:32:39 +00:00
SBFileSpec.cpp Fix TestSymbolContext for remote Windows to Android. 2015-06-08 22:12:58 +00:00
SBFileSpecList.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
SBFrame.cpp This patch makes Clang-independent base classes for all the expression types that lldb currently vends. 2015-09-15 21:13:50 +00:00
SBFunction.cpp First part of an attempt to indicate to the user when they are 2015-07-29 00:42:47 +00:00
SBHostOS.cpp Change HostThread::GetNativeThread() to return a derived reference. 2014-11-17 22:42:57 +00:00
SBInstruction.cpp Change the default disassembly format again. First attempt at 2015-02-13 23:24:21 +00:00
SBInstructionList.cpp Change the default disassembly format again. First attempt at 2015-02-13 23:24:21 +00:00
SBLanguageRuntime.cpp Move things from the LanguageRuntime that obviously belong in the new Language plugin instead. 2015-09-02 01:06:46 +00:00
SBLaunchInfo.cpp Refactor many file functions to use FileSpec over strings. 2015-05-29 19:52:29 +00:00
SBLineEntry.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
SBListener.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBModule.cpp Fix a variety of typos. 2015-06-18 05:27:05 +00:00
SBModuleSpec.cpp Made all other "operator bool"s explicit and ensured 2013-10-04 21:35:29 +00:00
SBPlatform.cpp Fix warnings detected by -Wpessimizing-move 2015-07-28 09:18:32 +00:00
SBProcess.cpp Refactor Unix signals. 2015-07-14 01:09:28 +00:00
SBQueue.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBQueueItem.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBSection.cpp Added functions to the C++ API, for the benefit of non-8-bit byte architectures. 2014-10-22 07:22:56 +00:00
SBSourceManager.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBStream.cpp Add null pointer checks to some SBStream functions. 2015-01-14 18:34:35 +00:00
SBStringList.cpp
SBSymbol.cpp Make many mangled functions that might demangle a name be allowed to specify a language to use in order to soon support Pascal and Java demangling. Dawn Perchik will take care of making this so. 2015-07-08 22:32:23 +00:00
SBSymbolContext.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
SBSymbolContextList.cpp
SBTarget.cpp Move things from the LanguageRuntime that obviously belong in the new Language plugin instead. 2015-09-02 01:06:46 +00:00
SBThread.cpp Fix log message warning in SBThread. 2015-09-09 00:56:25 +00:00
SBThreadCollection.cpp Expose ThreadCollection in SB API 2014-09-06 01:21:19 +00:00
SBThreadPlan.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBType.cpp Final bit of type system cleanup that abstracts declaration contexts into lldb_private::CompilerDeclContext and renames ClangType to CompilerType in many accessors and functions. 2015-08-24 23:46:31 +00:00
SBTypeCategory.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBTypeEnumMember.cpp ClangASTType is now CompilerType. 2015-08-11 22:53:00 +00:00
SBTypeFilter.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBTypeFormat.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBTypeNameSpecifier.cpp ClangASTType is now CompilerType. 2015-08-11 22:53:00 +00:00
SBTypeSummary.cpp Switch data formatters over to using std::function for their callbacks instead of raw function pointers. NFC 2015-08-27 00:45:33 +00:00
SBTypeSynthetic.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
SBUnixSignals.cpp Refactor Unix signals. 2015-07-14 01:09:28 +00:00
SBValue.cpp Final bit of type system cleanup that abstracts declaration contexts into lldb_private::CompilerDeclContext and renames ClangType to CompilerType in many accessors and functions. 2015-08-24 23:46:31 +00:00
SBValueList.cpp Fix warnings found by -Wextra-semi 2015-07-22 08:12:01 +00:00
SBVariablesOptions.cpp Revert "Revert "I had recently added a new SBFrame::GetVariables() overload with yet another bool argument"" 2015-02-17 17:55:50 +00:00
SBWatchpoint.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
SystemInitializerFull.cpp Add support for language plugins to provide data formatters (second attempt) 2015-09-01 18:22:39 +00:00
liblldb.exports Only export public symbols with the cmake build. 2015-09-04 00:00:41 +00:00
liblldb.xcode.exports Only export public symbols with the cmake build. 2015-09-04 00:00:41 +00:00