diff options
author | Enrico Granata <egranata@apple.com> | 2014-11-06 21:23:20 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2014-11-06 21:23:20 +0000 |
commit | c1247f5596af74a9f9cc59942cc8b6cf67d27529 (patch) | |
tree | f45c8e853ad96bd83d3af8ba5e62fceed7fb8e4d /lldb/scripts/Python/interface | |
parent | 442293e83f045d699a7ad733740f47880ba98bed (diff) | |
download | bcm5719-llvm-c1247f5596af74a9f9cc59942cc8b6cf67d27529.tar.gz bcm5719-llvm-c1247f5596af74a9f9cc59942cc8b6cf67d27529.zip |
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
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBTypeSummary.i | 26 | ||||
-rw-r--r-- | lldb/scripts/Python/interface/SBValue.i | 3 |
2 files changed, 28 insertions, 1 deletions
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 @@ -122,6 +122,9 @@ public: GetSummary (); const char * + GetSummary (lldb::SBTypeSummaryOptions& options); + + const char * GetObjectDescription (); const char * |