From: <rom...@us...> - 2006-05-14 07:23:58
|
Revision: 72 Author: roman_yakovenko Date: 2006-05-14 00:23:52 -0700 (Sun, 14 May 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=72&view=rev Log Message: ----------- Fixing small bug causes unnamed namespace. Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/filters.py Modified: pygccxml_dev/pygccxml/declarations/filters.py =================================================================== --- pygccxml_dev/pygccxml/declarations/filters.py 2006-05-14 07:22:54 UTC (rev 71) +++ pygccxml_dev/pygccxml/declarations/filters.py 2006-05-14 07:23:52 UTC (rev 72) @@ -290,6 +290,11 @@ declaration_matcher_t.__init__( self, name=name, decl_type=namespace.namespace_t) def __call__( self, decl ): + if self.name and decl.name == '': + #unnamed namespace have same name as thier parent, we should prevent + #this happens. The price is: user should search for unnamed namespace + #directly. + return False return super( namespace_matcher_t, self ).__call__( decl ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |