[Qt-creator] Multiple Symbols in Scope for same Namespace

Bertjan Broeksema b.broeksema at home.nl
Thu Mar 12 17:38:13 CET 2009


On Thursday 12 March 2009 10:17:20 Roberto Raggi wrote:
> 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 :-)

I never said it was a bug, I just had different expectations =;)

> 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

Ah okay I get the idea, thanks for the hint. As a side note, is there already 
code that binds declarations to uses of the declared symbol? This would 
currently be the killer feature for me =:)

Cheers,

-- 
Bertjan Broeksema,
KDEPIM/KPilot developer
http://bertjan.broeksemaatjes.nl



More information about the Qt-creator-old mailing list