Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Suggestion for TODO list plugin
rickg22:
Hi. I wanted to suggest an addition for the TODO list plugin.
Currently the following strings are searched: //TODO //FIXME and //NOTE (well I don't know if they're searched for comments etc.
I'd also like to apply that search for #warning directives. When I compile my projects I'm using those warnings for TODOs, so I won't forget about them when I compile. The problem is that to search them I have to use search in files. Why not add #warning TODO etc. to the TODO list?
Just a suggestion. Thanks!
DrewBoo:
--- Quote from: rickg22 on February 19, 2009, 12:32:08 am ---I'd also like to apply that search for #warning directives.
--- End quote ---
Looking at the TODO plugin code, I think Mandrav intended to support exactly that.
Mandrav, can I take a stab at implementing it?
MortenMacFly:
--- Quote from: rickg22 on February 19, 2009, 12:32:08 am ---Why not add #warning TODO etc. to the TODO list?
--- End quote ---
Hey Rick, since a few revisions already you can setup *any* keywords yourself! Just hit "Add todo item" and in the following dialog add the keywords yourself as you like...
Jenna:
--- Quote from: MortenMacFly on February 19, 2009, 11:28:42 am ---
--- Quote from: rickg22 on February 19, 2009, 12:32:08 am ---Why not add #warning TODO etc. to the TODO list?
--- End quote ---
Hey Rick, since a few revisions already you can setup *any* keywords yourself! Just hit "Add todo item" and in the following dialog add the keywords yourself as you like...
--- End quote ---
Compiler warning and compiler error are already there, but they don't work.
If I chose compiler warning and type TODO I get something like:
--- Code: ---#warning TODO (jens#1#): test
--- End code ---
All TODO's that come later in source code are not longer showed, neither is mine.
If I manually add comment-slashes before TODO it works:
--- Code: ---#warning // TODO (jens#1#): test
--- End code ---
MortenMacFly:
--- Quote from: jens on February 19, 2009, 12:05:26 pm ---
--- Code: ---#warning // TODO (jens#1#): test
--- End code ---
--- End quote ---
A simple modification should ensure this happens always (it seems to be a good solution). Any objections?
BTW: Those compiler #warning macros are not very nice anyways IMHO... I mean: They are fine for error checking like if all defines are set, platform is correct or alike. But not as a note / todo alike item. This is another philosophy I think. I mean: I use #warning for warnings to 3rd party devs that use e.g. my libraries and probably don't know how to handle them corrrectly. But ToDos / Notes are for myself and/or a dev team. At least that's how I always interpreted the functionality the ToDo plugin provides.
Navigation
[0] Message Index
[#] Next page
Go to full version