Skip to main content
GameDev.net gamedev.net
🔒 Locked

TODO list bot

Started by Leadorn Nov 27, 2004 at 4:37 PM 10 replies 1.6k views
Original Post
Leadorn
Leadorn
Hi Do you know of any program that can search thought source files for //TODO: strings and add it to a nice html document? Whenever you se a flaw or anything you don’t like and you don’t have time to fix it at the moment, or if it isent you code then you just but a //TODO: Leadorn this shit is fucked up and continue. It would be a nice program to have.
JiveTurkey
JiveTurkey
why don't you write one? you seem to know how to program and it a very challenging program to create.
notepad hates you.
Leadorn
Leadorn
i dont have time and i dont want to. Why code one when there might be one out there.
Joakim_ar
Joakim_ar
Well SharpDevelop gives you a nice list (see: view -> task list).

But if you want a tool for it, it's really just a matter of finding any [/][/][\t\s]*TODO[:][^\r\n]* that is not in a string " ", and you can pretty safely assume that there are no multi line strings, which means that you can just search line by line...
Flarelocke
Flarelocke
grep TODO *.c


ph34r m4 l33t c0dx0ring skills

Eclipse also has a built in list for these things, IIRC.
---New infokeeps brain running;must gas up!
Leadorn
Leadorn
yepp grep would work if you only want that row. But i need something more.
tentoid
tentoid
Quote:
Original post by Leadorn
Hi

Do you know of any program that can search thought source files for //TODO: strings and add it to a nice html document?

Whenever you se a flaw or anything you don’t like and you don’t have time to fix it at the moment, or if it isent you code then you just but a //TODO: Leadorn this shit is fucked up and continue. It would be a nice program to have.


Sounds like a job for.. grep! You can probably write a simple script that HTMLizes the output for you.

EDIT: Ah, grep was already mentioned..
Lantz
Lantz
Visual Studio .NET also has such a feature.
Leadorn
Leadorn
im using doxygen, but thanks for all help
Leadorn
Leadorn
im using doxygen, but thanks for all help
Ravyne
Ravyne
I'm pretty positive Doxygen will do that for you, at least it will pick out the TODOs on a per file/module basis. I'm resonably certain that it can be configured to output an overall todo list as well.
throw table_exception("(? ???)? ? ???");
Ravyne
Ravyne
From the Doxygen documentation:

Quote:

\todo { paragraph describing what is to be done }
Starts a paragraph where a TODO item is described. The description will also add an item to a separate TODO list. The two instances of the description will be cross-referenced. Each item in the TODO list will be preceded by a header that indicates the origin of the item.


I think it has to be put in a function header... you'd have to try inlining it into the code and see if it works.
throw table_exception("(? ???)? ? ???");

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.