1

I'm trying to switch from phpDocumentor to doxygen, but all my classes are documented in the following style:

/**
 * DESCRIPTION
 *
 * @category  PHP
 * @package   UserManagement.Class
 * @author    Name <email@company.com>
 * @copyright 2011 Company
 * @link      http://www.company.com
 */

but doxygen does not recognize that as the class doc unless I change the first line to

/*! \class CLASSNAME

Is there a way to tell doxygen to use the "/**" style?

regards

Ikar Pohorský
  • 4,617
  • 6
  • 39
  • 56
Christoph Fink
  • 22,727
  • 9
  • 68
  • 113
  • Sort of off-topic; but if you're sick of PHPDocumentor - like I am - you might want to consider looking at [DocBlox](http://www.docblox-project.org) instead. – Berry Langerak Jun 06 '11 at 14:07

3 Answers3

2

Doxygen should recognise JavaDoc (i.e. /**) comments. The problem maybe that your short description aren't being auto-detected.

To make Doxygen use these short descriptions you need to set JAVADOC_AUTOBRIEF to YES in your config file.

For more on how Doxygen documentation style have a look at this

albert
  • 8,285
  • 3
  • 19
  • 32
JoshB
  • 742
  • 1
  • 8
  • 12
2

I found the problem (but not the real solution): Doxygen does not like the @category & @package in the class doc block. If I remove them it works.

Christoph Fink
  • 22,727
  • 9
  • 68
  • 113
  • if you are on PHP 5.3 you should be able to use namespacing to provide this functionality (a bit of a hack but will probably provide the functionality you need) of course depending on situation this may/may not be possible with what you have – JoshB Jun 27 '11 at 16:56
  • In fact if `@category` and/or `@package` are present the class detailed description can be found in the _Namespaces_ section in generated documentation. – Ikar Pohorský Jul 03 '14 at 06:54
1

If for example your co-workers still use phpDoc you can use the INPUT_FILTER configuration to filter unwanted tags away:

$ grep INPUT_FILTER doc/doxygen.config
INPUT_FILTER      = /home/gorgo/someproj/doc/doxygen.inputfilter

The inputfilter script must be executable and its content can be something like this:

$ cat doc/doxygen.inputfilter
#!/bin/sh

grep -Fv '@package' $1 | grep -Fv '@category'
Ikar Pohorský
  • 4,617
  • 6
  • 39
  • 56