Krazy Checker for D-pointers

Allen Winter winter at kde.org
Thu Feb 1 04:20:02 GMT 2007


Howdy,

I have a new Krazy checker ready.
This one looks in a public class for private members that don't look like D-pointers.
It also checks if the D-pointer is const, i.e.,
   KFooPrivate * const d;
as described in http://developer.kde.org/policies/librarypolicy.html

Currently the checker complains if it finds any non-dpointer private member.
This includes functions, class definitions, etc.

example from kdelibs/kdecore/kernel:
        ./kstandarddirs.h: private members line#721,722,727,728,729,734,735,736,738,742,743,744,745 (13)
        ./ktoolinvocation.h: private members line#69,70,344,346,347,348,349,350 (8)
        ./kcomponentdata.h: non-const dpointer line#165 (1)
        ./kcmdlineargs.h: private members line#605,613,622,629,636,643,650,657,664,681,683,685,686,687,688,689,690,692,693,695,696,697,698,699,700,701 (26)
        ./kcmdlineargs.h: non-const dpointer line#704 (1)

example for kdepimlibs/kcal:
        ./scheduler.h: private members line#83,84,85,86 (4)
        ./scheduler.h: non-const dpointer line#89 (1)
        ./filestorage.h: private members line#54,55 (2)
        ./filestorage.h: non-const dpointer line#58 (1)
        ./resourcelocalconfig.h: private members line#53,54,55,56 (4)
        ./resourcelocalconfig.h: non-const dpointer line#59 (1)
        ./todo.h: private members line#307,312 (2)
        ./todo.h: non-const dpointer line#316 (1)
        ./resourcecached.h: private members line#438,439,441,442,443,444,445,446,448,449,450,452,453,455,456,457,459 (17)
        ./resourcecached.h: non-const dpointer line#462 (1)
        ./calformat.h: private members line#103,105,106 (3)
        ./calformat.h: non-const dpointer line#109 (1)
        ./icaldrag.h: non-const dpointer line#61 (1)
        ./recurrencerule.h: private members line#275 (1)
        ./person.h: non-const dpointer line#142 (1)
        ./resourcecalendar.h: private members line#453,454 (2)
        ./resourcecalendar.h: non-const dpointer line#457 (1)
        ./dndfactory.h: private members line#81 (1)
        ./dndfactory.h: non-const dpointer line#84 (1)
        ./kresult.h: private members line#234,235,236,237 (4)
        ./resourcelocal.h: private members line#166 (1)
        ./resourcelocal.h: non-const dpointer line#169 (1)
        ./resourcelocaldirconfig.h: private members line#55,56,57,58 (4)
        ./resourcelocaldirconfig.h: non-const dpointer line#61 (1)
        ./alarm.h: non-const dpointer line#606 (1)
        ./calendarlocal.h: private members line#251,252,253 (3)
        ./calendarlocal.h: non-const dpointer line#257 (1)
        ./duration.h: non-const dpointer line#125 (1)
   [snip]


Comments?

-- 
KDEPIM Developer
I accept PayPal payments to awinterz at earthlink.net




More information about the kde-core-devel mailing list