vds_create_hint

summary: provide custom decompiler hints

description:

Handle ida_hexrays.hxe_create_hint notification using hooks, to return our own.

If the object under the cursor is:

  • a function call, prefix the original decompiler hint with `==> `

  • a local variable declaration, replace the hint with our own in the form of !{varname} (where {varname} is replaced with the variable name)

  • an if statement, replace the hint with our own, saying “condition”

level: beginner

Attributes

vds_hooks

Classes

hint_hooks_t

Module Contents

class vds_create_hint.hint_hooks_t(_flags: int = 0, _hkcb_flags: int = 1)

Bases: ida_hexrays.Hexrays_Hooks

create_hint(vu)

Create a hint for the current item.

Parameters:

vu – (vdui_t *)

Returns:

0: continue collecting hints with other subscribers

Returns:

1: stop collecting hints

vds_create_hint.vds_hooks