title: List of variables defined in the code (c++)
body: <p>Does someone know if in C++ is there a function to get the name of all the variables defined in a code?</p>
  
  <p>Example code:</p>
  
  <pre><code>int main()
  {
     double Var1;
     double Var2;
     UnknownFunction();
  }
  </code></pre>
  
  <p>In this case the function I'm searching for(UnknownFunction) should output a vector of strings containing "Var1" and "Var2".</p>
  
  <p>Thank you in advance.</p>