Code::Blocks  SVN r11506
Classes | Macros | Variables
cclogger.h File Reference
#include <wx/string.h>
#include <wx/thread.h>
#include <memory>
#include <cbexception.h>
#include <logmanager.h>
#include <prep.h>
Include dependency graph for cclogger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CCLogger
 

Macros

#define CC_PROCESS_LOG_EVENT_TO_PARENT   0
 
#define CC_ENABLE_LOCKER_ASSERT
 
#define CC_LOCKER_TRACK_CS_ENTER(CS)   CS.Enter();
 
#define CC_LOCKER_TRACK_CS_LEAVE(CS)   CS.Leave();
 
#define CC_LOCKER_TRACK_TT_MTX_LOCK(M)
 
#define CC_LOCKER_TRACK_TT_MTX_UNLOCK(M)
 
#define CC_LOCKER_TRACK_CBBT_MTX_LOCK   CC_LOCKER_TRACK_TT_MTX_LOCK
 
#define CC_LOCKER_TRACK_CBBT_MTX_UNLOCK   CC_LOCKER_TRACK_TT_MTX_UNLOCK
 
#define CC_LOCKER_TRACK_P_MTX_LOCK   CC_LOCKER_TRACK_TT_MTX_LOCK
 
#define CC_LOCKER_TRACK_P_MTX_UNLOCK   CC_LOCKER_TRACK_TT_MTX_UNLOCK
 

Variables

bool g_EnableDebugTrace
 Toggles tracing into file. More...
 
const wxString g_DebugTraceFile
 Trace file name (if above is enabled). More...
 
long g_idCCAddToken
 
long g_idCCLogger
 
long g_idCCDebugLogger
 

Macro Definition Documentation

◆ CC_ENABLE_LOCKER_ASSERT

#define CC_ENABLE_LOCKER_ASSERT

Definition at line 65 of file cclogger.h.

◆ CC_LOCKER_TRACK_CBBT_MTX_LOCK

#define CC_LOCKER_TRACK_CBBT_MTX_LOCK   CC_LOCKER_TRACK_TT_MTX_LOCK

◆ CC_LOCKER_TRACK_CBBT_MTX_UNLOCK

#define CC_LOCKER_TRACK_CBBT_MTX_UNLOCK   CC_LOCKER_TRACK_TT_MTX_UNLOCK

◆ CC_LOCKER_TRACK_CS_ENTER

#define CC_LOCKER_TRACK_CS_ENTER (   CS)    CS.Enter();

Definition at line 156 of file cclogger.h.

◆ CC_LOCKER_TRACK_CS_LEAVE

#define CC_LOCKER_TRACK_CS_LEAVE (   CS)    CS.Leave();

Definition at line 157 of file cclogger.h.

◆ CC_LOCKER_TRACK_P_MTX_LOCK

#define CC_LOCKER_TRACK_P_MTX_LOCK   CC_LOCKER_TRACK_TT_MTX_LOCK

◆ CC_LOCKER_TRACK_P_MTX_UNLOCK

#define CC_LOCKER_TRACK_P_MTX_UNLOCK   CC_LOCKER_TRACK_TT_MTX_UNLOCK

◆ CC_LOCKER_TRACK_TT_MTX_LOCK

#define CC_LOCKER_TRACK_TT_MTX_LOCK (   M)
Value:
do { \
auto result = M.Lock(); \
cbAssert(result==wxMUTEX_NO_ERROR); \
} while (false);

Definition at line 159 of file cclogger.h.

Referenced by ClassBrowserBuilderThread::AddAncestorsOf(), ClassBrowserBuilderThread::AddChildrenOf(), ClassBrowserBuilderThread::AddDescendantsOf(), ClassBrowserBuilderThread::AddNodes(), NativeParserBase::AddTemplateAlias(), NativeParserBase::CleanupSearchScope(), NativeParserBase::CollectSearchScopes(), NativeParserBase::ComputeCallTip(), ClassBrowserBuilderThread::CreateSpecialFolders(), CodeCompletion::DoAllMethodsImpl(), CodeCompletion::DoClassMethodDeclImpl(), CodeCompletion::DoCodeComplete(), MarkFileAsLocalThreadedTask::Execute(), ParserThread::Execute(), ClassBrowserBuilderThread::ExpandItem(), NativeParserBase::FindCurrentFunctionScope(), NativeParser::FindCurrentFunctionStart(), NativeParser::FindCurrentFunctionToken(), ParserBase::FindTokensInFile(), DocumentationHelper::GenerateHTML(), CodeCompletion::GetTokenAt(), ClassBrowserBuilderThread::Init(), Parser::IsFileParsed(), NativeParser::MarkItemsByAI(), Parser::OnAllThreadsDone(), CodeCompletion::OnGotoDeclaration(), CodeCompletion::OnGotoFunction(), ClassBrowser::OnSearch(), ClassBrowser::OnTreeItemDoubleClick(), CodeRefactoring::Parse(), Parser::Parse(), Parser::ParseBuffer(), Parser::ParseBufferForFunctions(), Parser::ParseBufferForNamespaces(), Parser::ParseBufferForUsingNamespace(), NativeParser::ParseBufferForUsingNamespace(), NativeParser::ParseFunctionArguments(), CodeCompletion::ParseFunctionsAndFillToolbar(), NativeParser::ParseLocalBlock(), Parser::RemoveFile(), ClassBrowserBuilderThread::RemoveInvalidNodes(), NativeParserBase::RemoveLastFunctionChildren(), Parser::Reparse(), Parser::ReparseModifiedFiles(), NativeParserBase::ResolveActualType(), NativeParserBase::ResolveExpression(), NativeParserBase::ResolveOperator(), ClassBrowserBuilderThread::TokenContainsChildrenOfKind(), ClassBrowserBuilderThread::TokenMatchesFilter(), CodeCompletion::UpdateEditorSyntax(), CodeRefactoring::VerifyResult(), and ParserBase::~ParserBase().

◆ CC_LOCKER_TRACK_TT_MTX_UNLOCK

#define CC_LOCKER_TRACK_TT_MTX_UNLOCK (   M)
Value:
do { \
auto result = M.Unlock(); \
cbAssert(result==wxMUTEX_NO_ERROR); \
} while (false);

Definition at line 165 of file cclogger.h.

Referenced by ClassBrowserBuilderThread::AddAncestorsOf(), ClassBrowserBuilderThread::AddChildrenOf(), ClassBrowserBuilderThread::AddDescendantsOf(), ClassBrowserBuilderThread::AddNodes(), NativeParserBase::AddTemplateAlias(), NativeParserBase::CleanupSearchScope(), NativeParserBase::CollectSearchScopes(), NativeParserBase::ComputeCallTip(), ClassBrowserBuilderThread::CreateSpecialFolders(), CodeCompletion::DoAllMethodsImpl(), CodeCompletion::DoClassMethodDeclImpl(), CodeCompletion::DoCodeComplete(), MarkFileAsLocalThreadedTask::Execute(), ParserThread::Execute(), ClassBrowserBuilderThread::ExpandItem(), NativeParserBase::FindCurrentFunctionScope(), NativeParser::FindCurrentFunctionStart(), NativeParser::FindCurrentFunctionToken(), ParserBase::FindTokensInFile(), DocumentationHelper::GenerateHTML(), CodeCompletion::GetTokenAt(), ClassBrowserBuilderThread::Init(), Parser::IsFileParsed(), NativeParser::MarkItemsByAI(), Parser::OnAllThreadsDone(), CodeCompletion::OnGotoDeclaration(), CodeCompletion::OnGotoFunction(), ClassBrowser::OnSearch(), ClassBrowser::OnTreeItemDoubleClick(), CodeRefactoring::Parse(), Parser::Parse(), Parser::ParseBuffer(), Parser::ParseBufferForFunctions(), Parser::ParseBufferForNamespaces(), Parser::ParseBufferForUsingNamespace(), NativeParser::ParseBufferForUsingNamespace(), NativeParser::ParseFunctionArguments(), CodeCompletion::ParseFunctionsAndFillToolbar(), NativeParser::ParseLocalBlock(), Parser::RemoveFile(), ClassBrowserBuilderThread::RemoveInvalidNodes(), NativeParserBase::RemoveLastFunctionChildren(), Parser::Reparse(), Parser::ReparseModifiedFiles(), NativeParserBase::ResolveActualType(), NativeParserBase::ResolveExpression(), NativeParserBase::ResolveOperator(), ClassBrowserBuilderThread::TokenContainsChildrenOfKind(), ClassBrowserBuilderThread::TokenMatchesFilter(), CodeCompletion::UpdateEditorSyntax(), CodeRefactoring::VerifyResult(), and ParserBase::~ParserBase().

◆ CC_PROCESS_LOG_EVENT_TO_PARENT

#define CC_PROCESS_LOG_EVENT_TO_PARENT   0

Definition at line 21 of file cclogger.h.

Variable Documentation

◆ g_DebugTraceFile

const wxString g_DebugTraceFile

Trace file name (if above is enabled).

Definition at line 23 of file cclogger.cpp.

◆ g_EnableDebugTrace

bool g_EnableDebugTrace

Toggles tracing into file.

Definition at line 21 of file cclogger.cpp.

◆ g_idCCAddToken

long g_idCCAddToken

Definition at line 24 of file cclogger.cpp.

◆ g_idCCDebugLogger

long g_idCCDebugLogger

Definition at line 26 of file cclogger.cpp.

Referenced by CodeCompletion::CodeCompletion(), and CodeCompletion::~CodeCompletion().

◆ g_idCCLogger

long g_idCCLogger

Definition at line 25 of file cclogger.cpp.

Referenced by CodeCompletion::CodeCompletion(), and CodeCompletion::~CodeCompletion().