Version and Platform (required):
- Binary Ninja Version: 6.0.10601
- Edition: Ultimate
- OS: macOS
- OS Version: 26
- CPU Architecture: arm64
Bug Description:
When I use the Change Type dialog to change the type of a variable or function return, and want to use a structure type whose name is in a C++ namespace, the Change Type dialog suggests the type name directly, with the colons, causing a parse error. I then have to manually add backticks around the type name for it to parse correctly, every time.
Steps To Reproduce:
- Open binary libGameEngine.6.so.zip
- Navigate to
GameEngine::Box2I::move_min_x
- Click return type of function
- Press Y to change return type, observe Change Type dialog
- Enter
GameEngine::Box, click the Box2I suggestion in the combo box
- Observe that the suggestion has filled the box with a type that does not parse
Expected Behavior:
I expected the suggestions to work as presented, and to not have to fix up suggested inputs.
Additional Information:
Possible solutions to this:
- Make parsing
GameEngine::Box2I find the type as expected
- Make the box escape the type for me automatically
Of these options, (2) is definitely the easiest. (1) would be possible for this specific case where the type name is a basic alphanumeric and colons type of name, but would fail pretty hard once the types start including template parameters.
Version and Platform (required):
Bug Description:
When I use the Change Type dialog to change the type of a variable or function return, and want to use a structure type whose name is in a C++ namespace, the Change Type dialog suggests the type name directly, with the colons, causing a parse error. I then have to manually add backticks around the type name for it to parse correctly, every time.
Steps To Reproduce:
GameEngine::Box2I::move_min_xGameEngine::Box, click the Box2I suggestion in the combo boxExpected Behavior:
I expected the suggestions to work as presented, and to not have to fix up suggested inputs.
Additional Information:
Possible solutions to this:
GameEngine::Box2Ifind the type as expectedOf these options, (2) is definitely the easiest. (1) would be possible for this specific case where the type name is a basic alphanumeric and colons type of name, but would fail pretty hard once the types start including template parameters.