[C++-sig] Split_module and file names

Roman Yakovenko roman.yakovenko at gmail.com
Thu Nov 23 13:01:30 CET 2006


On 11/23/06, Nicolas Tessore <Tessore at stud.uni-heidelberg.de> wrote:
> Roman Yakovenko, 21.11.2006 07:33
>
> > Strange, this test ( http://tinyurl.com/y2a5g6 ) shows that it does
> > work for map and vector
> > ( not list, but still it is not too different )
>
> I also cannot see why it should not be working for me!
>
> > Don't use "cls.decl_string" but cls.name. pygccxml implements small
> > and naive parser
> > for C++ templates. It works most of the time. It does not able to
> > parser string like
> > x::y::z< a, b, c >, but z< a, b, c >.
>
> I found that both .name and .decl_string don't have the initial scope,
> and both don't work for me.
>
> > P.S. If it does not help, can you come up with small test case that
> > reproduce the problem?
>
> That's the most absurd thing of it all: I tryed
>
>      if not declarations.templates.is_instantiation(cls.name):
>          print cls.name
>
> and then copied the output string, and manually tried it with
>
>      print declarations.templates.is_instantiation("map<... >")
>
> which would always show as True.
>
> I'm confused, seems like I have to catch the maps manually with a
> cls.name.startswith("map") or something alike.

Wait a little. Can you send me privately zipped GCC-XML generated file and small
script that shows your problem? I'd like to understand the problem.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list