C++ private class member variables don't appear in the documentation

notnull picture notnull · Feb 1, 2015 · Viewed 17.5k times · Source

Class is documented as follows:

/**
 * @brief   Number representation
 */
class CNumber : public CElem
{
  /** @brief Holds true for negative values */
  bool    neg;
  ...

However, the variable documented in the code doesn't appear in the documentation (class brief shows fine...).

What am I doing wrong?

Answer

rightfold picture rightfold · Feb 1, 2015

It's private. Make it public or protected and it will show up, or configure Doxygen to show private members by setting the EXTRACT_PRIVATE tag to YES in the configuration file (which is usually "Doxyfile").