Decompiler output empty lines hook

Hey

I’ve been putting together a small indent-guide plugin for the decompiler. Some outputs are just painful to read without better visual structure, and I never really liked the existing options like full block highlighting or only marking brace lines. So I made my own version.

I’m getting ready to share it on the Hex-Rays Plugin Repo, but I’ve got one last question. When the Generate empty lines option is enabled, at what stage does the decompiler actually insert those blank lines? I’m hooking the output with func_printed in ida_hexrays.Hexrays_Hooks, but those empty lines don’t show up there.

Example (line 825, 842)

If it’s not possible I will just post it as is.

Thanks.

Excuse me for the spam.

These lines ARE actually in func_printed(), I was wrongly inspecting output after ida_lines.tag_remove().

I’ll post the plugin after accounting for the empty lines and fixing few things (line 1664)

1 Like