Skip to content

Commit 309b397

Browse files
committed
issue #8281: Out-of-line documentation of scoped enums in the same namespace
1 parent 9d9d3bc commit 309b397

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/doxygen.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5720,10 +5720,12 @@ static void addMemberFunction(const Entry *root,
57205720
if (md->isEnumValue() && (enumNamePos=className.findRev("::"))!=-1)
57215721
{
57225722
QCString enumName = className.mid(enumNamePos+2);
5723-
if (className.left(enumNamePos)==cd->name())
5723+
QCString fullScope = className.left(enumNamePos);
5724+
if (!namespaceName.isEmpty()) fullScope.prepend(namespaceName+"::");
5725+
if (fullScope==cd->name())
57245726
{
57255727
MemberName *enumMn=Doxygen::memberNameLinkedMap->find(enumName);
5726-
//printf("enumMn(%s)=%p\n",qPrint(className),enumMn);
5728+
//printf("enumMn(%s)=%p\n",qPrint(className),(void*)enumMn);
57275729
if (enumMn)
57285730
{
57295731
for (const auto &emd : *enumMn)

0 commit comments

Comments
 (0)