Commit 4766fdba authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 734331 - (Kashej) Strong enum members listed in containing namespace

parent e864a6ca
...@@ -2279,7 +2279,9 @@ void addClassMemberNameToIndex(MemberDef *md) ...@@ -2279,7 +2279,9 @@ void addClassMemberNameToIndex(MemberDef *md)
(QCString(md->typeString())=="friend class" || (QCString(md->typeString())=="friend class" ||
QCString(md->typeString())=="friend struct" || QCString(md->typeString())=="friend struct" ||
QCString(md->typeString())=="friend union"); QCString(md->typeString())=="friend union");
if (!(md->isFriend() && isFriendToHide)) if (!(md->isFriend() && isFriendToHide) &&
(!md->isEnumValue() || (md->getEnumScope() && !md->getEnumScope()->isStrong()))
)
{ {
g_memberIndexLetterUsed[CMHL_All].append(letter,md); g_memberIndexLetterUsed[CMHL_All].append(letter,md);
documentedClassMembers[CMHL_All]++; documentedClassMembers[CMHL_All]++;
...@@ -2288,7 +2290,7 @@ void addClassMemberNameToIndex(MemberDef *md) ...@@ -2288,7 +2290,7 @@ void addClassMemberNameToIndex(MemberDef *md)
{ {
g_memberIndexLetterUsed[CMHL_Functions].append(letter,md); g_memberIndexLetterUsed[CMHL_Functions].append(letter,md);
documentedClassMembers[CMHL_Functions]++; documentedClassMembers[CMHL_Functions]++;
} }
else if (md->isVariable()) else if (md->isVariable())
{ {
g_memberIndexLetterUsed[CMHL_Variables].append(letter,md); g_memberIndexLetterUsed[CMHL_Variables].append(letter,md);
...@@ -2304,7 +2306,7 @@ void addClassMemberNameToIndex(MemberDef *md) ...@@ -2304,7 +2306,7 @@ void addClassMemberNameToIndex(MemberDef *md)
g_memberIndexLetterUsed[CMHL_Enums].append(letter,md); g_memberIndexLetterUsed[CMHL_Enums].append(letter,md);
documentedClassMembers[CMHL_Enums]++; documentedClassMembers[CMHL_Enums]++;
} }
else if (md->isEnumValue()) else if (md->isEnumValue() && md->getEnumScope() && !md->getEnumScope()->isStrong())
{ {
g_memberIndexLetterUsed[CMHL_EnumValues].append(letter,md); g_memberIndexLetterUsed[CMHL_EnumValues].append(letter,md);
documentedClassMembers[CMHL_EnumValues]++; documentedClassMembers[CMHL_EnumValues]++;
...@@ -2349,10 +2351,13 @@ void addNamespaceMemberNameToIndex(MemberDef *md) ...@@ -2349,10 +2351,13 @@ void addNamespaceMemberNameToIndex(MemberDef *md)
QCString n = md->name(); QCString n = md->name();
int index = getPrefixIndex(n); int index = getPrefixIndex(n);
uint letter = getUtf8CodeToLower(n,index); uint letter = getUtf8CodeToLower(n,index);
if (!n.isEmpty()) if (!n.isEmpty())
{ {
g_namespaceIndexLetterUsed[NMHL_All].append(letter,md); if (!md->isEnumValue() || (md->getEnumScope() && !md->getEnumScope()->isStrong()))
documentedNamespaceMembers[NMHL_All]++; {
g_namespaceIndexLetterUsed[NMHL_All].append(letter,md);
documentedNamespaceMembers[NMHL_All]++;
}
if (md->isFunction()) if (md->isFunction())
{ {
...@@ -2374,7 +2379,7 @@ void addNamespaceMemberNameToIndex(MemberDef *md) ...@@ -2374,7 +2379,7 @@ void addNamespaceMemberNameToIndex(MemberDef *md)
g_namespaceIndexLetterUsed[NMHL_Enums].append(letter,md); g_namespaceIndexLetterUsed[NMHL_Enums].append(letter,md);
documentedNamespaceMembers[NMHL_Enums]++; documentedNamespaceMembers[NMHL_Enums]++;
} }
else if (md->isEnumValue()) else if (md->isEnumValue() && md->getEnumScope() && !md->getEnumScope()->isStrong())
{ {
g_namespaceIndexLetterUsed[NMHL_EnumValues].append(letter,md); g_namespaceIndexLetterUsed[NMHL_EnumValues].append(letter,md);
documentedNamespaceMembers[NMHL_EnumValues]++; documentedNamespaceMembers[NMHL_EnumValues]++;
...@@ -2405,8 +2410,11 @@ void addFileMemberNameToIndex(MemberDef *md) ...@@ -2405,8 +2410,11 @@ void addFileMemberNameToIndex(MemberDef *md)
uint letter = getUtf8CodeToLower(n,index); uint letter = getUtf8CodeToLower(n,index);
if (!n.isEmpty()) if (!n.isEmpty())
{ {
g_fileIndexLetterUsed[FMHL_All].append(letter,md); if (!md->isEnumValue() || (md->getEnumScope() && !md->getEnumScope()->isStrong()))
documentedFileMembers[FMHL_All]++; {
g_fileIndexLetterUsed[FMHL_All].append(letter,md);
documentedFileMembers[FMHL_All]++;
}
if (md->isFunction()) if (md->isFunction())
{ {
...@@ -2428,7 +2436,7 @@ void addFileMemberNameToIndex(MemberDef *md) ...@@ -2428,7 +2436,7 @@ void addFileMemberNameToIndex(MemberDef *md)
g_fileIndexLetterUsed[FMHL_Enums].append(letter,md); g_fileIndexLetterUsed[FMHL_Enums].append(letter,md);
documentedFileMembers[FMHL_Enums]++; documentedFileMembers[FMHL_Enums]++;
} }
else if (md->isEnumValue()) else if (md->isEnumValue() && md->getEnumScope() && !md->getEnumScope()->isStrong())
{ {
g_fileIndexLetterUsed[FMHL_EnumValues].append(letter,md); g_fileIndexLetterUsed[FMHL_EnumValues].append(letter,md);
documentedFileMembers[FMHL_EnumValues]++; documentedFileMembers[FMHL_EnumValues]++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment