Skip to content

Commit 41ddc50

Browse files
committed
Add debug listing for sections
Add debug possibilities for sections
1 parent f23bba3 commit 41ddc50

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

src/debug.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ static std::map< std::string, Debug::DebugMask > s_labels =
4646
{ "tag", Debug::Tag },
4747
{ "alias", Debug::Alias },
4848
{ "entries", Debug::Entries },
49+
{ "sections", Debug::Sections },
4950
{ "lex", Debug::Lex },
5051
{ "lex:code", Debug::Lex_code },
5152
{ "lex:commentcnv", Debug::Lex_commentcnv },

src/debug.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class Debug
4343
Tag = 0x00'8000ULL,
4444
Alias = 0x01'0000ULL,
4545
Entries = 0x02'0000ULL,
46+
Sections = 0x04'0000ULL,
4647
Lex = 0x0000'FFFF'FF00'0000ULL, // all scanners combined
4748
Lex_code = 0x0000'0000'0100'0000ULL,
4849
Lex_commentcnv = 0x0000'0000'0200'0000ULL,

src/doxygen.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9418,6 +9418,20 @@ void printNavTree(Entry *root,int indent)
94189418
}
94199419
}
94209420
}
9421+
//----------------------------------------------------------------------------
9422+
// prints the Sections tree (for debugging)
9423+
9424+
void printSectionsTree()
9425+
{
9426+
if (Debug::isFlagSet(Debug::Sections))
9427+
{
9428+
for (const auto &si : SectionManager::instance())
9429+
{
9430+
Debug::print(Debug::Sections,0,"Section = %s, file = %s, title = %s\n",
9431+
qPrint(si->label()),qPrint(si->fileName()),qPrint(si->title()));
9432+
}
9433+
}
9434+
}
94219435

94229436

94239437
//----------------------------------------------------------------------------
@@ -12356,6 +12370,7 @@ void parseInput()
1235612370
}
1235712371

1235812372
printNavTree(root.get(),0);
12373+
printSectionsTree();
1235912374
}
1236012375

1236112376
void generateOutput()

0 commit comments

Comments
 (0)