Patch: TODO highlighting in comments

Dmitry Risenberg dmitry.risenberg at gmail.com
Mon Oct 11 11:24:19 UTC 2010


Looks like the previous message was overlooked, so re-posting it.

Here are the patches that provide searching for TODOs in comments,
highlighting them as semantic problems and reporting via the
problemview plugin.

There is a known issue with adjacent comments, like

/* TODO */ /* FIXME */
int i;

- it will underline "TODO */ /* FIXME" part, which is wrong. This is
because /* TODO */ /* FIXME */ is seen as one token by the parser -
not sure whether it should be this way.

Also haven't measured the influence this change has on performance
(don't know if there is a simple way).

Dmitry Risenberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdevelop.diff
Type: application/octet-stream
Size: 8480 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20101011/d5c7e2eb/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdevplatform.diff
Type: application/octet-stream
Size: 5002 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20101011/d5c7e2eb/attachment-0001.obj>


More information about the KDevelop-devel mailing list