[Qt-creator] Multiple Symbols in Scope for same Namespace
Marek Jasovsky
jasovsky.marek at gmail.com
Thu Mar 12 10:21:50 CET 2009
Hi, would it be possible to help us with some small hints / code snippets
how we can fetch information about symbols / scope from annotated ast?
or maybe point to some of your code within tests that does this
Thanks & regards
Marek
2009/3/12 Roberto Raggi <roberto.raggi at trolltech.com>
> Hi Bertjan,
>
> On 10.03.2009, at 20:43, Bertjan Broeksema wrote:
> > I wrote a simple Scope dumper to be able to have a quick look at the
> > result
> > and noticed a strange thing. It seems that there is no check to see
> > if a
> > namespace already is defined in the current scope and it is just
> > added without
>
> Yep, but this is a feature not a bug :-) The semantic pass in Creator
> is optimized for our use case (incremental updates of C++ documents),
> that's why we use a sort of forest of trees and not one "central"
> database of symbols. But I understand that in your case our design can
> be quite annoying. By the way, if you want you can write a simple pass
> that will merge the namespace symbols. Take a look at tests/manual/
> binding/ for an example of how to do it.
>
>
> http://labs.trolltech.com/gitweb?p=qt-creator;a=blob;f=tests/manual/binding/main.cpp;h=7165e3860755d4e1386da27076a371fa05dbe9ca;hb=refs/heads/master
>
> ciao robe
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090312/4316dc91/attachment.html
More information about the Qt-creator-old
mailing list