Fix parsing of enum values defined in an anonymous namespace.
commit24bea89a15ec928c4cfcb9a739ba8a7eb44f5714
authorJohannes Sixt <j6t@kdbg.org>
Fri, 10 Jun 2011 07:36:02 +0000 (10 09:36 +0200)
committerJohannes Sixt <j6t@kdbg.org>
Fri, 10 Jun 2011 08:31:52 +0000 (10 10:31 +0200)
treed6ca1d49d5c7d9cca750daeceaba8ab3620bff30
parent82cb8075e6f34f59fb32a75f4b507e52004dfa69
Fix parsing of enum values defined in an anonymous namespace.

When enumeration was defined in an anonymous namespace that is itself
nested in a namespace (named or anonymous), then the its values were not
detected correctly. This fixes the parser.

Noticed by Charles Samuels.
kdbg/gdbdriver.cpp
kdbg/testprogs/testfile.cpp