summaryrefslogtreecommitdiffstats
path: root/lldb/include/lldb/API/SBValue.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/include/lldb/API/SBValue.h')
-rw-r--r--lldb/include/lldb/API/SBValue.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/lldb/include/lldb/API/SBValue.h b/lldb/include/lldb/API/SBValue.h
index 2c02a7c938e..09e09049bd8 100644
--- a/lldb/include/lldb/API/SBValue.h
+++ b/lldb/include/lldb/API/SBValue.h
@@ -293,6 +293,25 @@ public:
lldb::SBDeclaration
GetDeclaration ();
+ //------------------------------------------------------------------
+ /// Find out if a SBValue might have children.
+ ///
+ /// This call is much more efficient than GetNumChildren() as it
+ /// doesn't need to complete the underlying type. This is designed
+ /// to be used in a UI environment in order to detect if the
+ /// disclosure triangle should be displayed or not.
+ ///
+ /// This function returns true for class, union, structure,
+ /// pointers, references, arrays and more. Again, it does so without
+ /// doing any expensive type completion.
+ ///
+ /// @return
+ /// Returns \b true if the SBValue might have children, or \b
+ /// false otherwise.
+ //------------------------------------------------------------------
+ bool
+ MightHaveChildren ();
+
uint32_t
GetNumChildren ();
OpenPOWER on IntegriCloud