KDevPlatform Itemrepository bucket freeItems

David Nolden david.nolden.kdevelop at art-master.de
Fri Mar 4 00:07:59 UTC 2011


2011/3/4 floris <flo.ruijt at gmail.com>:
> On Thu, 2011-03-03 at 22:13 +0100, Milian Wolff wrote:
>> floris, 01.03.2011:
>> > On Tue, 2011-03-01 at 10:15 +0100, Milian Wolff wrote:
>> > > you have quite some in-depth knowledge on these
>> > > tasks, many of us (esp. me) don't have that. I for one am just a
>> > > self-taught
>> > > programmer and hence would greatly appreciate it if you could shortly
>> > > outline
>> > > what you want to achieve an
>> >
>> > well a short introduction then :)
>>
>> ok thanks, do I see that correctly that this is supposed to be used in
>> https://git.reviewboard.kde.org/r/100730/diff/#index_header or is this for
>> usage somewhere else?
>>
>> bye
> no this is to be used in
> kdevplatform/language/duchain/repositories/itemrepository.h
>
> I made major edits there, but the code is still failing(sometimes
> segfaults sometimes assertion failures). I just wanted to show something
> before i finished it, as the patch will be large.
>
> btw it's pretty annoying that a major part of kdevelop/kdevplatform
> includes itemrepository.h(directly or indirectly) which means a
> recompile of 15-20 minutes after each edit.
>
> Floris

You should create a unit-test for testing this, see for example
test_Itemrepository.cpp. Then you also need to recompile only that one
file, instead of whole kdevplatform.

Regarding your crashes: Did you also make sure that the items are
always large enough to hold the data you put into them?




More information about the KDevelop-devel mailing list