MCPcopy Create free account
hub / github.com/KDE/kdevelop / validPointer

Function validPointer

plugins/lldb/formatters/helpers.py:130–136  ·  view source on GitHub ↗

Test if a SBValue pointer is valid

(pointer)

Source from the content-addressed store, hash-verified

128
129
130def validPointer(pointer):
131 """Test if a SBValue pointer is valid"""
132 if not pointer.IsValid():
133 return False
134 if pointer.GetValueAsUnsigned(0) == 0:
135 return False
136 return toSBPointer(pointer, pointer.GetValueAsUnsigned(0), pointer.GetType().GetPointeeType()).IsValid()
137
138
139class AutoCacheValue(object):

Callers 1

__init__Method · 0.90

Calls 2

toSBPointerFunction · 0.85
IsValidMethod · 0.80

Tested by

no test coverage detected