diff options
author | Dave Lee <davelee.com@gmail.com> | 2022-03-09 01:17:08 +0300 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2022-03-09 19:33:08 +0300 |
commit | 704001e90b3d434c710ed178c95ae42961a7f7b0 (patch) | |
tree | 992d8630e7b0688b3ff604b39ee3564d25ba8022 /lldb/bindings | |
parent | a12403cfea15fc86fadfc28b5c76c056b36609cc (diff) |
[lldb] Add SBType::IsAggregateType
Add `IsAggregateType` to the SB API.
I'd like to use this from tests, and there are numerous other `Is<X>Type`
predicates on `SBType`.
Differential Revision: https://reviews.llvm.org/D121252
Diffstat (limited to 'lldb/bindings')
-rw-r--r-- | lldb/bindings/interface/SBType.i | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/bindings/interface/SBType.i b/lldb/bindings/interface/SBType.i index d6e8db3ab428..8db2fa749634 100644 --- a/lldb/bindings/interface/SBType.i +++ b/lldb/bindings/interface/SBType.i @@ -355,6 +355,18 @@ public: IsScopedEnumerationType (); %feature("docstring", + "Returns true if this type is an aggregate type. + + Language-specific behaviour: + + * C: Returns true for struct values, arrays, and vectors. + * C++: Same a C. Also includes class instances. + * Objective-C: Same as C. Also includes class instances. + ") IsAggregateType; + bool + IsAggregateType (); + + %feature("docstring", "Returns a type that represents a pointer to this type. If the type system of the current language can't represent a pointer to this |