From 061858ce61c6c3c19a964b572cbcdc8304b287b9 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 15 Feb 2012 02:34:21 +0000 Subject: New public API for handling formatters: creating, deleting, modifying categories, and formatters, and managing type/formatter association. This provides SB classes for each of the main object types involved in providing formatter support: SBTypeCategory SBTypeFilter SBTypeFormat SBTypeSummary SBTypeSynthetic plus, an SBTypeNameSpecifier class that is used on the public API layer to abstract the notion that formatters can be applied to plain type-names as well as to regular expressions For naming consistency, this patch also renames a lot of formatters-related classes. Plus, the changes in how flags are handled that started with summaries is now extended to other classes as well. A new enum (lldb::eTypeOption) is meant to support this on the public side. The patch also adds several new calls to the formatter infrastructure that are used to implement by-index accessing and several other design changes required to accommodate the new API layer. An architectural change is introduced in that backing objects for formatters now become writable. On the public API layer, CoW is implemented to prevent unwanted propagation of changes. Lastly, there are some modifications in how the "default" category is constructed and managed in relation to other categories. llvm-svn: 150558 --- lldb/scripts/Python/build-swig-Python.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lldb/scripts/Python/build-swig-Python.sh') diff --git a/lldb/scripts/Python/build-swig-Python.sh b/lldb/scripts/Python/build-swig-Python.sh index 6ccea31d8b9..5fcbe7a81f2 100755 --- a/lldb/scripts/Python/build-swig-Python.sh +++ b/lldb/scripts/Python/build-swig-Python.sh @@ -73,6 +73,12 @@ HEADER_FILES="${SRC_ROOT}/include/lldb/lldb.h"\ " ${SRC_ROOT}/include/lldb/API/SBTarget.h"\ " ${SRC_ROOT}/include/lldb/API/SBThread.h"\ " ${SRC_ROOT}/include/lldb/API/SBType.h"\ +" ${SRC_ROOT}/include/lldb/API/SBTypeCategory.h"\ +" ${SRC_ROOT}/include/lldb/API/SBTypeFilter.h"\ +" ${SRC_ROOT}/include/lldb/API/SBTypeFormat.h"\ +" ${SRC_ROOT}/include/lldb/API/SBTypeNameSpecifier.h"\ +" ${SRC_ROOT}/include/lldb/API/SBTypeSummary.h"\ +" ${SRC_ROOT}/include/lldb/API/SBTypeSynthetic.h"\ " ${SRC_ROOT}/include/lldb/API/SBValue.h"\ " ${SRC_ROOT}/include/lldb/API/SBValueList.h"\ " ${SRC_ROOT}/include/lldb/API/SBWatchpoint.h"\ @@ -109,6 +115,12 @@ INTERFACE_FILES="${SRC_ROOT}/scripts/Python/interface/SBAddress.i"\ " ${SRC_ROOT}/scripts/Python/interface/SBTarget.i"\ " ${SRC_ROOT}/scripts/Python/interface/SBThread.i"\ " ${SRC_ROOT}/scripts/Python/interface/SBType.i"\ +" ${SRC_ROOT}/scripts/Python/interface/SBTypeCategory.i"\ +" ${SRC_ROOT}/scripts/Python/interface/SBTypeFilter.i"\ +" ${SRC_ROOT}/scripts/Python/interface/SBTypeFormat.i"\ +" ${SRC_ROOT}/scripts/Python/interface/SBTypeNameSpecifier.i"\ +" ${SRC_ROOT}/scripts/Python/interface/SBTypeSummary.i"\ +" ${SRC_ROOT}/scripts/Python/interface/SBTypeSynthetic.i"\ " ${SRC_ROOT}/scripts/Python/interface/SBValue.i"\ " ${SRC_ROOT}/scripts/Python/interface/SBValueList.i"\ " ${SRC_ROOT}/scripts/Python/interface/SBWatchpoint.i" -- cgit v1.2.3