Ghidra 11.3.2
Ghidra internal decompiler documentation.
Loading...
Searching...
No Matches
ghidra::PendingBrace Class Reference

Set of print commands for displaying an open brace '{' and setting a new indent level. More...

#include <printc.hh>

Inheritance diagram for ghidra::PendingBrace:
[legend]
Collaboration diagram for ghidra::PendingBrace:
[legend]

Public Member Functions

 PendingBrace (Emit::brace_style s)
 Constructor.
 
int4 getIndentId (void) const
 If commands have been issued, returns the new indent level id.
 
virtual void callback (Emit *emit)
 Callback that executes the actual print commands.
 
- Public Member Functions inherited from ghidra::PendPrint
virtual ~PendPrint (void)
 Destructor.
 

Private Attributes

int4 indentId
 Id associated with the new indent level.
 
Emit::brace_style style
 Style to use for pending brace.
 

Detailed Description

Set of print commands for displaying an open brace '{' and setting a new indent level.

These are the print commands sent to the emitter prior to printing and else block. The open brace can be canceled if the block decides it wants to use "else if" syntax.

Member Function Documentation

◆ callback()

void ghidra::PendingBrace::callback ( Emit emit)
virtual

Callback that executes the actual print commands.

Implements ghidra::PendPrint.

References indentId, ghidra::PrintC::OPEN_CURLY, ghidra::Emit::openBraceIndent(), and style.


The documentation for this class was generated from the following files: