Skip to main content

The debug.cpp File Reference

Included Headers

#include <stdarg.h> #include <algorithm> #include <stdio.h> #include <map> #include <string> #include <chrono> #include "debug.h" #include "message.h" #include "qcstring.h"

Classes Index

classTimer

Functions Index

static charasciiToLower (char in)
static uint64_tlabelToEnumValue (const QCString &l)

Variables Index

static std::map< std::string, Debug::DebugMask >s_labels
static FILE *g_debugFile = stdout
static Timerg_runningTime

Functions

asciiToLower()

char asciiToLower (char in)
static

Definition at line 89 of file debug.cpp.

89static char asciiToLower(char in) {
90 if (in <= 'Z' && in >= 'A')
91 return in - ('Z' - 'z');
92 return in;
93}

Referenced by convertUTF8ToLower and labelToEnumValue.

labelToEnumValue()

uint64_t labelToEnumValue (const QCString & l)
static

Definition at line 95 of file debug.cpp.

95static uint64_t labelToEnumValue(const QCString &l)
96{
97 std::string s = l.str();
98 std::transform(s.begin(),s.end(),s.begin(),asciiToLower);
99 auto it = s_labels.find(s);
100 return (it!=s_labels.end()) ? it->second : Debug::DebugMask::Quiet;
101}

References asciiToLower, Debug::Quiet, s_labels and QCString::str.

Referenced by Debug::setFlagStr.

Variables

g_debugFile

FILE* g_debugFile = stdout
static

Definition at line 76 of file debug.cpp.

76static FILE *g_debugFile = stdout;

Referenced by Debug::print_ and Debug::setFlagStr.

g_runningTime

Timer g_runningTime
static

Definition at line 194 of file debug.cpp.

Referenced by Debug::elapsedTime and Debug::startTimer.

s_labels

std::map< std::string, Debug::DebugMask > s_labels
static

Definition at line 29 of file debug.cpp.

29static std::map< std::string, Debug::DebugMask > s_labels =
30{
31 { "preprocessor", Debug::Preprocessor },
32 { "nolineno", Debug::NoLineNo },
33 { "commentcnv", Debug::CommentCnv },
34 { "commentscan", Debug::CommentScan },
35 { "formula", Debug::Formula },
36 { "printtree", Debug::PrintTree },
37 { "time", Debug::Time },
38 { "extcmd", Debug::ExtCmd },
39 { "markdown", Debug::Markdown },
40 { "filteroutput", Debug::FilterOutput },
41 { "plantuml", Debug::Plantuml },
42 { "fortranfixed2free", Debug::FortranFixed2Free },
43 { "cite", Debug::Cite },
44 { "rtf", Debug::Rtf },
45 { "qhp", Debug::Qhp },
46 { "tag", Debug::Tag },
47 { "alias", Debug::Alias },
48 { "entries", Debug::Entries },
49 { "sections", Debug::Sections },
50 { "stderr", Debug::Stderr },
51 { "layout", Debug::Layout },
52 { "lex", Debug::Lex },
53 { "lex:code", Debug::Lex_code },
54 { "lex:commentcnv", Debug::Lex_commentcnv },
55 { "lex:commentscan", Debug::Lex_commentscan },
56 { "lex:configimpl", Debug::Lex_configimpl },
57 { "lex:constexp", Debug::Lex_constexp },
58 { "lex:declinfo", Debug::Lex_declinfo },
59 { "lex:defargs", Debug::Lex_defargs },
60 { "lex:doctokenizer", Debug::Lex_doctokenizer },
61 { "lex:fortrancode", Debug::Lex_fortrancode },
62 { "lex:fortranscanner", Debug::Lex_fortranscanner },
63 { "lex:lexcode", Debug::Lex_lexcode },
64 { "lex:lexscanner", Debug::Lex_lexscanner },
65 { "lex:pre", Debug::Lex_pre },
66 { "lex:pycode", Debug::Lex_pycode },
67 { "lex:pyscanner", Debug::Lex_pyscanner },
68 { "lex:scanner", Debug::Lex_scanner },
69 { "lex:sqlcode", Debug::Lex_sqlcode },
70 { "lex:vhdlcode", Debug::Lex_vhdlcode },
71 { "lex:xml", Debug::Lex_xml },
72 { "lex:xmlcode", Debug::Lex_xmlcode },
73};

Referenced by labelToEnumValue and Debug::printFlags.


Generated via doxygen2docusaurus by Doxygen 1.14.0.