Doxygen
debug.cpp 文件参考
#include <stdarg.h>
#include <algorithm>
#include <stdio.h>
#include <map>
#include <string>
#include <chrono>
#include "debug.h"
#include "message.h"
#include "qcstring.h"
+ debug.cpp 的引用(Include)关系图:

浏览源代码.

class  Timer
 

函数

static char asciiToLower (char in)
 
static int labelToEnumValue (const QCString &l)
 

变量

static std::map< std::string, Debug::DebugMasks_labels
 
static Timer g_runningTime
 

函数说明

◆ asciiToLower()

static char asciiToLower ( char  in)
static

在文件 debug.cpp68 行定义.

68  {
69  if (in <= 'Z' && in >= 'A')
70  return in - ('Z' - 'z');
71  return in;
72 }

被这些函数引用 labelToEnumValue().

◆ labelToEnumValue()

static int labelToEnumValue ( const QCString l)
static

在文件 debug.cpp74 行定义.

75 {
76  std::string s = l.str();
77  std::transform(s.begin(),s.end(),s.begin(),asciiToLower);
78  auto it = s_labels.find(s);
79  return (it!=s_labels.end()) ? it->second : 0;
80 }

引用了 asciiToLower(), s_labels , 以及 QCString::str().

被这些函数引用 Debug::clearFlag() , 以及 Debug::setFlag().

变量说明

◆ g_runningTime

Timer g_runningTime
static

在文件 debug.cpp131 行定义.

被这些函数引用 Debug::elapsedTime() , 以及 Debug::startTimer().

◆ s_labels

std::map< std::string, Debug::DebugMask > s_labels
static
初始值:
=
{
{ "findmembers", Debug::FindMembers },
{ "functions", Debug::Functions },
{ "variables", Debug::Variables },
{ "preprocessor", Debug::Preprocessor },
{ "nolineno", Debug::NoLineNo },
{ "classes", Debug::Classes },
{ "commentcnv", Debug::CommentCnv },
{ "commentscan", Debug::CommentScan },
{ "validate", Debug::Validate },
{ "printtree", Debug::PrintTree },
{ "time", Debug::Time },
{ "extcmd", Debug::ExtCmd },
{ "markdown", Debug::Markdown },
{ "filteroutput", Debug::FilterOutput },
{ "lex", Debug::Lex },
{ "plantuml", Debug::Plantuml },
{ "fortranfixed2free", Debug::FortranFixed2Free },
{ "cite", Debug::Cite },
{ "rtf", Debug::Rtf }
}

在文件 debug.cpp29 行定义.

被这些函数引用 labelToEnumValue() , 以及 Debug::printFlags().

Debug::ExtCmd
@ ExtCmd
Definition: debug.h:36
Debug::NoLineNo
@ NoLineNo
Definition: debug.h:43
Debug::Validate
@ Validate
Definition: debug.h:33
Debug::Cite
@ Cite
Definition: debug.h:42
Debug::Lex
@ Lex
Definition: debug.h:39
QCString::str
std::string str() const
Definition: qcstring.h:442
asciiToLower
static char asciiToLower(char in)
Definition: debug.cpp:68
Debug::FortranFixed2Free
@ FortranFixed2Free
Definition: debug.h:41
Debug::CommentScan
@ CommentScan
Definition: debug.h:32
Debug::FindMembers
@ FindMembers
Definition: debug.h:26
Debug::Preprocessor
@ Preprocessor
Definition: debug.h:29
Debug::CommentCnv
@ CommentCnv
Definition: debug.h:31
Debug::Functions
@ Functions
Definition: debug.h:27
Debug::FilterOutput
@ FilterOutput
Definition: debug.h:38
Debug::Variables
@ Variables
Definition: debug.h:28
s_labels
static std::map< std::string, Debug::DebugMask > s_labels
Definition: debug.cpp:29
Debug::Markdown
@ Markdown
Definition: debug.h:37
Debug::Time
@ Time
Definition: debug.h:35
Debug::Classes
@ Classes
Definition: debug.h:30
Debug::Rtf
@ Rtf
Definition: debug.h:44
Debug::Plantuml
@ Plantuml
Definition: debug.h:40
Debug::PrintTree
@ PrintTree
Definition: debug.h:34