Vector35 / Vector35/binaryninja-api

Option for hiding `enum`, `struct` and `union` keywords in decompilation

Offen
#3,963 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Component: UI Effort: Low Impact: Low UI: Linear
Vorherrschende Sprache
C++
Sterne
1.3k
Forks
298
Ø Merge
5 T. 5 Std.
Gemergte PRs (30 T.)
19

Beschreibung

Suppose I've this structure in a bndb:

struct std_string __packed
{
    char s[0x10];
    int32_t size;
    int32_t max_size;
};

When I use this structure, I see it like this in decompiler:

struct std_string test

or like this in function prototypes:

void __stdcall set_str(struct std_string* dst, struct std_string* src)

Most of the time I find that struct keyword unnecessary. Of course this is some kind of personal preference, but it also have some advantages I guess. Is it possible to add an option for hiding that kind of keywords? I think hiding enum, uniıon and struct would be enough.

Currently I can get rid of it by creating a new typedef for that structure, but it takes time.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

No file, test, or entry point is named in the issue. Start with the decompiler output examples and determine where formatting options for enum, struct, and union keywords are handled; done means those keywords can be hidden in declarations and function prototypes while the existing structure remains usable.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp
Bereich
reverse-engineering
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.