Skip to content

BasicBlock Comment and Tag #7327

@utkonos

Description

@utkonos

What is the feature you'd like to have?
In the same way that a Function object has its own tag and comment that are not associtaed with an address, BasicBlocks could use the same: tag and comment. There is already a paradigm for applying highlighting at the BasicBlock level.

Is your feature request related to a problem?
If I want to have a comment at the start of a BasicBlock and have it drawn above the block, I need to make it long enough or with enough spaces to keep it from being drawn to the right of the first line in the block. Also, if there is a comment that I actually want associated with that first line, both of these comments end up together.

Additional Information:
Here is an example of a simulated BasicBlock comment when it works and looks the way I want it:
Image

But here is an example of the comment string being too short:
Image

However, if you add spaces, it is rendered where it looks good:
Image

With spaces, it looks like this:
Image

Here is the other part of the problem. This is a comment meant for the first line of code in the block.
Image

This is the closest it can get to ideal:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions