[Qt-creator] Multiple Symbols in Scope for same Namespace
Roberto Raggi
roberto.raggi at trolltech.com
Thu Mar 12 10:17:20 CET 2009
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
More information about the Qt-creator-old
mailing list