Skip to content

Commit 518422a

Browse files
committed
Better warning in case of an internal error of a layout element
Better warning in case of an internal error. At the moment we could get warnings like: ``` error: Internal inconsistency: member 10 should not be part of LayoutDocManager::Namespace entry list ``` though it would be better to have a mnemonic instead of a number.
1 parent 396e81d commit 518422a

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/classdef.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,8 +2872,8 @@ void ClassDefImpl::writeDocumentationContents(OutputList &ol,const QCString & /*
28722872
case LayoutDocEntry::DirSubDirs:
28732873
case LayoutDocEntry::DirFiles:
28742874
case LayoutDocEntry::DirGraph:
2875-
err("Internal inconsistency: member %d should not be part of "
2876-
"LayoutDocManager::Class entry list\n",lde->kind());
2875+
err("Internal inconsistency: member '%s' should not be part of "
2876+
"LayoutDocManager::Class entry list\n",qPrint(lde->entryToString()));
28772877
break;
28782878
}
28792879
}

src/conceptdef.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,8 @@ void ConceptDefImpl::writeDocumentation(OutputList &ol)
609609
case LayoutDocEntry::DirSubDirs:
610610
case LayoutDocEntry::DirFiles:
611611
case LayoutDocEntry::DirGraph:
612-
err("Internal inconsistency: member %d should not be part of "
613-
"LayoutDocManager::Concept entry list\n",lde->kind());
612+
err("Internal inconsistency: member '%s' should not be part of "
613+
"LayoutDocManager::Concept entry list\n",qPrint(lde->entryToString()));
614614
break;
615615
}
616616
}

src/dirdef.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,8 @@ void DirDefImpl::writeDocumentation(OutputList &ol)
643643
case LayoutDocEntry::MemberDef:
644644
case LayoutDocEntry::MemberDefStart:
645645
case LayoutDocEntry::MemberDefEnd:
646-
err("Internal inconsistency: member %d should not be part of "
647-
"LayoutDocManager::Directory entry list\n",lde->kind());
646+
err("Internal inconsistency: member '%s' should not be part of "
647+
"LayoutDocManager::Directory entry list\n",qPrint(lde->entryToString()));
648648
break;
649649
}
650650
}

src/filedef.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,8 +1027,8 @@ void FileDefImpl::writeDocumentation(OutputList &ol)
10271027
case LayoutDocEntry::DirSubDirs:
10281028
case LayoutDocEntry::DirFiles:
10291029
case LayoutDocEntry::DirGraph:
1030-
err("Internal inconsistency: member %d should not be part of "
1031-
"LayoutDocManager::File entry list\n",lde->kind());
1030+
err("Internal inconsistency: member '%s' should not be part of "
1031+
"LayoutDocManager::File entry list\n",qPrint(lde->entryToString()));
10321032
break;
10331033
}
10341034
}

src/groupdef.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,8 +1317,8 @@ void GroupDefImpl::writeDocumentation(OutputList &ol)
13171317
case LayoutDocEntry::DirSubDirs:
13181318
case LayoutDocEntry::DirFiles:
13191319
case LayoutDocEntry::DirGraph:
1320-
err("Internal inconsistency: member %d should not be part of "
1321-
"LayoutDocManager::Group entry list\n",lde->kind());
1320+
err("Internal inconsistency: member '%s' should not be part of "
1321+
"LayoutDocManager::Group entry list\n",qPrint(lde->entryToString()));
13221322
break;
13231323
}
13241324
}

src/moduledef.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ void ModuleDefImpl::writeDocumentation(OutputList &ol)
463463
case LayoutDocEntry::DirSubDirs:
464464
case LayoutDocEntry::DirFiles:
465465
case LayoutDocEntry::DirGraph:
466-
err("Internal inconsistency: member %d should not be part of "
467-
"LayoutDocManager::Module entry list\n",lde->kind());
466+
err("Internal inconsistency: member '%s' should not be part of "
467+
"LayoutDocManager::Module entry list\n",qPrint(lde->entryToString()));
468468
break;
469469
}
470470
}

src/namespacedef.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,8 +1116,8 @@ void NamespaceDefImpl::writeDocumentation(OutputList &ol)
11161116
case LayoutDocEntry::DirSubDirs:
11171117
case LayoutDocEntry::DirFiles:
11181118
case LayoutDocEntry::DirGraph:
1119-
err("Internal inconsistency: member %d should not be part of "
1120-
"LayoutDocManager::Namespace entry list\n",lde->kind());
1119+
err("Internal inconsistency: member '%s' should not be part of "
1120+
"LayoutDocManager::Namespace entry list\n",qPrint(lde->entryToString()));
11211121
break;
11221122
}
11231123
}

0 commit comments

Comments
 (0)