Skip to content

Commit 34f0609

Browse files
committed
Non existing anchors in "index" files
When having an undocumented enum value in e.g the doxygen_crawl list and other indices an anchor appears that does not exists. For the doxygen enum example this is illustrated by the `chmcmd` command (a replacement for `hhc`) by means of: ``` Error: Anchor examples/enum/html/class_enum___test.html#a8d096bc026dbb395991f02e3ca86eb1ca284b56694c3f4513699fc86ea30527b0 undefined; first use doxygen_crawl.html ```
1 parent 510dbeb commit 34f0609

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/htmlhelp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ void HtmlHelp::addIndexItem(const Definition *context,const MemberDef *md,
602602
{
603603
if (context && md)
604604
{
605+
if (sectionAnchor.isEmpty() && !md->hasDocumentation()) return;
605606
QCString cfname = md->getOutputFileBase();
606607
QCString argStr = md->argsString();
607608
QCString level1 = context->name();

src/qhp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ void Qhp::addIndexItem(const Definition *context,const MemberDef *md,
375375

376376
if (context && md) // member
377377
{
378+
if (sectionAnchor.isEmpty() && !md->hasDocumentation()) return;
378379
QCString cfname = md->getOutputFileBase();
379380
QCString argStr = md->argsString();
380381
QCString level1 = context->name();

src/sitemap.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ void Crawlmap::addIndexItem(const Definition *context, const MemberDef *md,
197197
{
198198
if (context && md) // member
199199
{
200+
if (sectionAnchor.isEmpty() && !md->hasDocumentation()) return;
200201
QCString cfname = md->getOutputFileBase();
201202
QCString anchor = !sectionAnchor.isEmpty() ? sectionAnchor : md->anchor();
202203
QCString ref = makeRef(cfname, anchor);

0 commit comments

Comments
 (0)