[C++-sig] Split_module and file names
Nicolas Tessore
Tessore at stud.uni-heidelberg.de
Wed Nov 22 23:36:07 CET 2006
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.
N.
More information about the Cplusplus-sig
mailing list