Using appleDoc and ///TODO: comment

189 Views Asked by At

I'm working on a project that uses AppleDoc to generate documentation. I want to add some TODO comments in my code eg:

///TODO: Some stuff to be done
-(void)myMethod:(id)myParam{
  [self doSomeFancyStuff];
}

The problem is that when I try to generate my project doc I get theses troublesome warnings :

/Users/Me/trunk/MyProject/MyProject/src/MyClass.m:119: MyClass.m@119: Description for parameter 'myParam' missing for -[MyClass myMethod:]

Obviously I could get rid of my TODO comments but I'd like to keep them along with my beautyful doc. Does anybody know how to achieve that ?

1

There are 1 best solutions below

1
On BEST ANSWER

When you add a /// block, you trigger an Appledoc/Doxygen documentation block and the function is marked as documented. The doc generator will check and report that block as incomplete because you did not document the parameter.

You have 2 solutions:

  1. add another row with /// @param myParam brief explanation of what it is
  2. use // instead of ///.