Current state of duchain/parser

Matt Rogers mattr at kde.org
Sun May 13 15:09:48 UTC 2007


On Sunday 13 May 2007 10:04, Kris Wong wrote:
> > A few comments in the order that I see them.
> >
> > In duchainlock.h
> > 1. No semi-colons in empty constructors. Just the brackets. Compilers
>
> have
>
> > started to warn about this, and it's better to just avoid it all
>
> together.
>
> Okay.
>
> > 2. Is there a particular reason why you used Qt::HANDLE? Everything in
>
> the
>
> > documentation says this is pretty non portable.
>
> It is what QReadWriteLock uses internally, and also what
> QThread::currentThreadID returns.  I tried to match QReadWriteLock where
> possible while still providing the functionality we needed.
>
> > 3. Unline the ReadLocker and WriteLocker methods if you can. I don't
>
> know
>
> > what the compiler does with those in debug mode, but i'd prefer to be
>
> able
>
> > to debug it if needed.
>
> It does not inline them when optmizations are turned off (technically it
> might not inline them even if they are turned on).  I can certainly
> remove the inline keywords, though.
>
> Kris Wong
>

remove the inline keywords and then please commit. 
-- 
Matt




More information about the KDevelop-devel mailing list