From c1247f5596af74a9f9cc59942cc8b6cf67d27529 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Thu, 6 Nov 2014 21:23:20 +0000 Subject: Introduce the notion of "type summary options" as flags that can be passed down to individual summary formatters to alter their behavior in a formatter-dependent way Two flags are introduced: - preferred display language (as in, ObjC vs. C++) - summary capping (as in, should a limit be put to the amount of data retrieved) The meaning - if any - of these options is for individual formatters to establish The topic of a subsequent commit will be to actually wire these through to individual data formatters llvm-svn: 221482 --- lldb/scripts/Python/interface/SBTypeSummary.i | 26 +++++++++++++++++++++++++- lldb/scripts/Python/interface/SBValue.i | 3 +++ 2 files changed, 28 insertions(+), 1 deletion(-) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBTypeSummary.i b/lldb/scripts/Python/interface/SBTypeSummary.i index 9d6a0017c56..924256111ae 100644 --- a/lldb/scripts/Python/interface/SBTypeSummary.i +++ b/lldb/scripts/Python/interface/SBTypeSummary.i @@ -8,7 +8,31 @@ //===----------------------------------------------------------------------===// namespace lldb { - + class SBTypeSummaryOptions + { + public: + SBTypeSummaryOptions(); + + SBTypeSummaryOptions (const lldb::SBTypeSummaryOptions &rhs); + + ~SBTypeSummaryOptions (); + + bool + IsValid (); + + lldb::LanguageType + GetLanguage (); + + lldb::TypeSummaryCapping + GetCapping (); + + void + SetLanguage (lldb::LanguageType); + + void + SetCapping (lldb::TypeSummaryCapping); + }; + %feature("docstring", "Represents a summary that can be associated to one or more types. ") SBTypeSummary; diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i index 15b39fd8630..db780394e71 100644 --- a/lldb/scripts/Python/interface/SBValue.i +++ b/lldb/scripts/Python/interface/SBValue.i @@ -121,6 +121,9 @@ public: const char * GetSummary (); + const char * + GetSummary (lldb::SBTypeSummaryOptions& options); + const char * GetObjectDescription (); -- cgit v1.2.3