@@ -212,7 +212,6 @@ def __classify_struct(self):
212
212
# REGULAR STRUCT
213
213
return TYPE_KIND_REGULAR_STRUCT
214
214
215
-
216
215
def __classify_union (self ):
217
216
assert self .get_dwarf_type_kind () == DWARF_TYPE_CODE_UNION
218
217
@@ -233,7 +232,6 @@ def __classify_union(self):
233
232
else :
234
233
return TYPE_KIND_REGULAR_UNION
235
234
236
-
237
235
def __conforms_to_field_layout (self , expected_fields ):
238
236
actual_fields = self .get_fields ()
239
237
actual_field_count = len (actual_fields )
@@ -363,6 +361,7 @@ def extract_tail_head_ptr_and_cap_from_std_vecdeque(vec_val):
363
361
assert data_ptr .type .get_dwarf_type_kind () == DWARF_TYPE_CODE_PTR
364
362
return (tail , head , data_ptr , capacity )
365
363
364
+
366
365
def extract_length_and_ptr_from_slice (slice_val ):
367
366
assert (slice_val .type .get_type_kind () == TYPE_KIND_SLICE or
368
367
slice_val .type .get_type_kind () == TYPE_KIND_STR_SLICE )
@@ -376,8 +375,10 @@ def extract_length_and_ptr_from_slice(slice_val):
376
375
assert data_ptr .type .get_dwarf_type_kind () == DWARF_TYPE_CODE_PTR
377
376
return (length , data_ptr )
378
377
378
+
379
379
UNQUALIFIED_TYPE_MARKERS = frozenset (["(" , "[" , "&" , "*" ])
380
380
381
+
381
382
def extract_type_name (qualified_type_name ):
382
383
"""Extracts the type name from a fully qualified path"""
383
384
if qualified_type_name [0 ] in UNQUALIFIED_TYPE_MARKERS :
@@ -393,6 +394,7 @@ def extract_type_name(qualified_type_name):
393
394
else :
394
395
return qualified_type_name [index + 2 :]
395
396
397
+
396
398
try :
397
399
compat_str = unicode # Python 2
398
400
except NameError :
0 commit comments