title: How to document macro-generated classes with Doxygen?
body: <p>I use macros to generate classes in the following way:</p>
  
  <p>generator.h:</p>
  
  <pre><code>class CLASS_NAME : public parent
  {
      //generate variables with names given by CLASS_VARIABLES using complicated
      //Boost.Preprocessor stuff.
  };
  
  #undef CLASS_NAME
  #undef CLASS_VARIABLES
  </code></pre>
  
  <p>myclass.h:</p>
  
  <pre><code>#define CLASS_NAME MyClass
  #define CLASS_VARIABLES (a, b, c, x, y, z)
  #include "generator.h"
  </code></pre>
  
  <p>The actual class is more complicated and uses various Boost.Preprocessor macros. Is there a way to automatically document the generated classes with Doxygen by adding comments to generator.h, or alternatively to generate an example class with documentation? I have tried enabling ENABLE_PREPROCESSING and MACRO_EXPANSION, but this does not seem to suffice.</p>