Code::Blocks  SVN r11506
Public Member Functions | Public Attributes | List of all members
Tokenizer::ExpandedMacro Struct Reference

replaced buffer information Here is an example of how macro are expanded More...

Collaboration diagram for Tokenizer::ExpandedMacro:

Public Member Functions

 ExpandedMacro ()
 

Public Attributes

unsigned int m_Begin
 the token index we begin to parse after replacement More...
 
unsigned int m_End
 the end token index, if beyond this index, we need to pop the buffer More...
 
const Tokenm_Macro
 the referenced used macro More...
 

Detailed Description

replaced buffer information Here is an example of how macro are expanded

#define AAA BBBB
if we see a macro usage below
..........AAA..................[EOF]
^
'^' is the m_TokenIndex.
As you can see, AAA need to be replaced to BBBB, and this is the buffer content after
replacement.
.........BBBB..................[EOF]
^ ^

The first '^' is the new m_TokenIndex, we store is as m_Begin, the second '^' is the anchor point, we store it as m_End, normally the content from m_End to [EOF] are unchanged, unless m_Buffer is too small to store the substituted text.

Definition at line 581 of file tokenizer.h.

Constructor & Destructor Documentation

◆ ExpandedMacro()

Tokenizer::ExpandedMacro::ExpandedMacro ( )
inline

Definition at line 583 of file tokenizer.h.

Member Data Documentation

◆ m_Begin

unsigned int Tokenizer::ExpandedMacro::m_Begin

the token index we begin to parse after replacement

Definition at line 585 of file tokenizer.h.

◆ m_End

unsigned int Tokenizer::ExpandedMacro::m_End

the end token index, if beyond this index, we need to pop the buffer

Definition at line 589 of file tokenizer.h.

Referenced by Tokenizer::ReplaceBufferText().

◆ m_Macro

const Token* Tokenizer::ExpandedMacro::m_Macro

the referenced used macro

Definition at line 591 of file tokenizer.h.

Referenced by Tokenizer::ReplaceBufferText().


The documentation for this struct was generated from the following file: