Code::Blocks
SVN r11506
|
mark all the tokens belong to the project as "local" E.g. More...
#include <parserthreadedtask.h>
Public Member Functions | |
MarkFileAsLocalThreadedTask (Parser *parser, cbProject *project) | |
virtual int | Execute () |
Override this function with the task's job Return value doesn't matter. More... | |
Public Member Functions inherited from cbThreadedTask | |
cbThreadedTask () | |
cbThreadedTask ctor More... | |
virtual | ~cbThreadedTask ()=0 |
cbThreadedTask dtor More... | |
void | Abort () |
This function is called to tell the task to abort (check cbThreadPool::AbortAllTasks) More... | |
Private Attributes | |
Parser * | m_Parser |
cbProject * | m_Project |
a Parser object which contain TokenTree More... | |
Additional Inherited Members | |
Protected Member Functions inherited from cbThreadedTask | |
bool | TestDestroy () const |
Be sure to call this function often. If it returns true, quit your task quickly. More... | |
bool | Aborted () const |
Same as TestDestroy() More... | |
mark all the tokens belong to the project as "local" E.g.
If you have a.cpp in cbp, then all the tokens belong to a.cpp are marked as local but not system headers like Windows.h, those tokens do not belong to the project files, so it is not "local".
Definition at line 41 of file parserthreadedtask.h.
Definition at line 113 of file parserthreadedtask.cpp.
|
virtual |
Override this function with the task's job Return value doesn't matter.
Implements cbThreadedTask.
Definition at line 118 of file parserthreadedtask.cpp.
References _T, CC_LOCKER_TRACK_TT_MTX_LOCK, CC_LOCKER_TRACK_TT_MTX_UNLOCK, ProjectFile::file, ParserCommon::FileType(), ParserCommon::ftOther, cbProject::GetFilesList(), wxFileName::GetFullPath(), ParserBase::GetTokenTree(), m_Parser, m_Project, TokenTree::MarkFileTokensAsLocal(), ProjectFile::relativeFilename, s_TokenTreeMutex, and TRACE.
|
private |
Definition at line 49 of file parserthreadedtask.h.
Referenced by Execute().
|
private |
a Parser object which contain TokenTree
Definition at line 50 of file parserthreadedtask.h.
Referenced by Execute().