mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-18 20:28:01 +00:00
Fix Clay_OnHover
This commit is contained in:
parent
4f4605eff9
commit
61ba36753b
@ -61,6 +61,7 @@ TYPE_MAPPING = {
|
|||||||
'uint32_t': 'u32',
|
'uint32_t': 'u32',
|
||||||
'int32_t': 'c.int32_t',
|
'int32_t': 'c.int32_t',
|
||||||
'uintptr_t': 'rawptr',
|
'uintptr_t': 'rawptr',
|
||||||
|
'intptr_t': 'rawptr',
|
||||||
'void': 'void',
|
'void': 'void',
|
||||||
}
|
}
|
||||||
STRUCT_TYPE_OVERRIDES = {
|
STRUCT_TYPE_OVERRIDES = {
|
||||||
|
@ -103,8 +103,6 @@ class Visitor(c_ast.NodeVisitor):
|
|||||||
def visit_Typedef(self, node: c_ast.Typedef):
|
def visit_Typedef(self, node: c_ast.Typedef):
|
||||||
# node.show()
|
# node.show()
|
||||||
if hasattr(node.type, 'type') and hasattr(node.type.type, 'decls') and node.type.type.decls:
|
if hasattr(node.type, 'type') and hasattr(node.type.type, 'decls') and node.type.type.decls:
|
||||||
if node.name == "Clay_ErrorHandler":
|
|
||||||
logger.debug(node)
|
|
||||||
struct = {}
|
struct = {}
|
||||||
for decl in node.type.type.decls:
|
for decl in node.type.type.decls:
|
||||||
if hasattr(decl, 'type') and hasattr(decl.type, 'type') and isinstance(decl.type.type, c_ast.Union):
|
if hasattr(decl, 'type') and hasattr(decl.type, 'type') and isinstance(decl.type.type, c_ast.Union):
|
||||||
|
Loading…
Reference in New Issue
Block a user