summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-comments.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-07-31 23:39:10 +0000
committerGreg Clayton <gclayton@apple.com>2012-07-31 23:39:10 +0000
commit1811b4faad9fd1496bde1d09bd336f9d9902dd78 (patch)
treea706d8b48c714fe427e6fb1320064796a73c3afc /clang/test/Index/annotate-comments.cpp
parentd1c43cee245b56f34849821228e12b9437d97329 (diff)
downloadbcm5719-llvm-1811b4faad9fd1496bde1d09bd336f9d9902dd78.tar.gz
bcm5719-llvm-1811b4faad9fd1496bde1d09bd336f9d9902dd78.zip
<rdar://problem/11275622>
Added new API to lldb::SBTypeMember for bitfields: bool SBTypeMember::IsBitfield(); uint32_t SBTypeMember::GetBitfieldSizeInBits(); Also added new properties for easy access. Now SBTypeMember objects in python have a "fields" property for all type fields, "bases" for all direct bases, "vbases" for all virtual base classes and "members" for a combo of all three organized by bit offset. They all return a python list() of SBTypeMember objects. Usage: (lldb) script >>> t = lldb.target.FindFirstType("my_type") >>> for field in t.fields: ... print field >>> for vbase in t.vbases: ... print vbase >>> for base in t.bases: ... print base >>> for member in t.members: ... print member Also added new "is_bitfield" property to the SBTypeMember objects that will return the result of SBTypeMember::IsBitfield(), and "bitfield_bit_size" which will return the result of SBTypeMember::GetBitfieldSizeInBits(); I also fixed "SBTypeMember::GetOffsetInBytes()" to return the correct byte offset. llvm-svn: 161091
Diffstat (limited to 'clang/test/Index/annotate-comments.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud