Code::Blocks  SVN r11506
Enumerations | Functions | Variables
ParserCommon Namespace Reference

Enumerations

enum  ParserState { ptCreateParser = 1, ptReparseFile = 2, ptAddFileToParser = 3, ptUndefined = 4 }
 
enum  EFileType { ftHeader, ftSource, ftOther }
 the enum type of the file type More...
 

Functions

EFileType FileType (const wxString &filename, bool force_refresh=false)
 return a file type, which can be either header files or implementation files or other files More...
 

Variables

static const int PARSER_BATCHPARSE_TIMER_DELAY = 300
 
static const int PARSER_BATCHPARSE_TIMER_RUN_IMMEDIATELY = 10
 
static const int PARSER_BATCHPARSE_TIMER_DELAY_LONG = 1000
 
static const int PARSER_REPARSE_TIMER_DELAY = 100
 
static volatile Parsers_CurrentParser = nullptr
 
static wxMutex s_ParserMutex
 
int idParserStart = wxNewId()
 
int idParserEnd = wxNewId()
 

Enumeration Type Documentation

◆ EFileType

the enum type of the file type

Enumerator
ftHeader 
ftSource 
ftOther 

Definition at line 25 of file parser_base.h.

◆ ParserState

Enumerator
ptCreateParser 

the Parser object is newly created, and we are parsing the predefined macro buffer, the source files, and finally mark the project's tokens as local

ptReparseFile 

some files are changed by the user, so we are parsing the changed files

ptAddFileToParser 

the user has add some files to the cbproject, so we are parsing the new added files

ptUndefined 

non of the above three status, this means our Parser has finish all the jobs, and it is in idle mode

Definition at line 88 of file parser.h.

Function Documentation

◆ FileType()

ParserCommon::EFileType ParserCommon::FileType ( const wxString filename,
bool  force_refresh = false 
)

Variable Documentation

◆ idParserEnd

int ParserCommon::idParserEnd = wxNewId()

◆ idParserStart

int ParserCommon::idParserStart = wxNewId()

◆ PARSER_BATCHPARSE_TIMER_DELAY

const int ParserCommon::PARSER_BATCHPARSE_TIMER_DELAY = 300
static

Definition at line 77 of file parser.cpp.

Referenced by Parser::AddBatchParse(), Parser::AddParse(), and Parser::AddPredefinedMacros().

◆ PARSER_BATCHPARSE_TIMER_DELAY_LONG

const int ParserCommon::PARSER_BATCHPARSE_TIMER_DELAY_LONG = 1000
static

Definition at line 79 of file parser.cpp.

Referenced by Parser::OnBatchTimer().

◆ PARSER_BATCHPARSE_TIMER_RUN_IMMEDIATELY

const int ParserCommon::PARSER_BATCHPARSE_TIMER_RUN_IMMEDIATELY = 10
static

Definition at line 78 of file parser.cpp.

Referenced by Parser::OnAllThreadsDone().

◆ PARSER_REPARSE_TIMER_DELAY

const int ParserCommon::PARSER_REPARSE_TIMER_DELAY = 100
static

Definition at line 80 of file parser.cpp.

Referenced by Parser::Reparse(), and Parser::ReparseModifiedFiles().

◆ s_CurrentParser

volatile Parser* ParserCommon::s_CurrentParser = nullptr
static

Definition at line 84 of file parser.cpp.

Referenced by Parser::OnAllThreadsDone(), Parser::OnBatchTimer(), and Parser::~Parser().

◆ s_ParserMutex

wxMutex ParserCommon::s_ParserMutex
static