title: Doxygen grouping variables from inside the function
body: <p>I've been reading very careful about grouing and ingroup command. It states that "Members of a group can be files, namespaces, classes, functions, variables, enums, typedefs, and defines, but also other groups."</p>
  
  <p>As such, I've been trying to group few variables from inside the function. The documentation does not seem to state any specifications or limitation as to what kind of variable it is.</p>
  
  <p>Here is simple example:</p>
  
  <pre><code>/// \file hyperLinks.h
  class hyperLinks
  {
      public:
  
          void getEnvVars();
  
          // WORKS!
          /**
           *  @ingroup group2
           */
          int public_var;
  
      protected:
          // WORKS!
          /**
           *  @ingroup group2
           */
          int protected_var;
  
      private:
          int private_var;
  };
  
  // WORKS!
  /**
   *  @ingroup group2
   */
  int globalVarH;
  </code></pre>
  
  <p>And the corresponding cpp file:</p>
  
  <pre><code>/// \file hyperLinks.cpp
  #include "hyperLinks.h"
  
  /**
  *  @defgroup group2 The Second Group
  *  This is the second group
  */
  
  
  hyperLinks::getEnvVars()
  {
      // do something here
  
      // put this into a group2
      // ---DOES NOT WORK---
      /**
      *  @ingroup group2
      *  @brief variable inside getEnvVars()
      */
      int inFunctionVariable;
  
  }
  
  // works!
  /**
   *  @ingroup group2
   *  @brief OUTSIDE globalVar from .cpp file in group 2
   *  @brief outside class defenition
   */
  int globalVarCPP;
  </code></pre>
  
  <p>From the code above the following DO get placed in Module->The Second Group:</p>
  
  <p>-public_var</p>
  
  <p>-protected_var</p>
  
  <p>-globalVarH</p>
  
  <p>-globalVarCPP</p>
  
  <p>Yet, the variable from inside the function DOES NOT appear in the group:</p>
  
  <p>-inFunctionVariable</p>
  
  <p>The 5th variable is no showing up.</p>
  
  <p>Any ideas why this is not working?
  How to fix it or a work-around?</p>
  
  <p>Also, I've read thru all the message/warning generated during the run of doxygen documentation.
  There are errors or warning with regards to this file.</p>
  
  <p>Any help will be greatly appreciated.</p>
  
  <p>Thank you!</p>
  
  <p>ps. Doxygen version 1.8.3.1</p>