Typedef of enumeration does not show references

Open
#4,076 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

Reproduce the issue in Binary Ninja using the enum and typedef declarations shown, then compare references when the enum is used directly versus through my_enum. Trace the type-view reference handling for both names. Done means references are visible for the typedef-based enum in the types view.

Written by the indexing model from the issue text.

Description

Component: UI Effort: Low Impact: Medium UI: Cross References UI: Types

Binary Ninja Version: 3.4.4090-dev
Platform: Windows 11 Version 22H2

Let's say I have a enumeration like this:

enum _my_enum {
    a = 1,
    b = 2,
    c = 3
}

If I use this enumeration in decompilation as _my_enum directly, then I can see the references of it in types view when I click on _my_enum. But if I create a new type like typedef enum _my_enum my_enum then using the newly created my_enum in decompilation (I do this in order to get rid of enum keyword), I can not see the references by clicking on _my_enum or my_enum in types view.

Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Vector35/binaryninja-api

All issues in Vector35/binaryninja-api

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.