title: Get list of methods in class using clang
body: <p>In common IDEs (pick one) you often have an outline view showing you the list of methods for a specific class.</p>
  
  <p>Suppose I have a C++ interface class in <code>IFoo.h</code> that looks like this:</p>
  
  
  
  <pre class="lang-cpp prettyprint-override"><code>#ifndef IFOO_H_
  #define IFOO_H_
  class IFoo { 
      public:
          virtual ~IFoo() {}
          virtual void bar() = 0;
  };
  #endif
  </code></pre>
  
  <p>How (programmatically) can I get such an IDE outliner list for my <code>IFoo.h</code> file above using maybe the clang libraries? For a first start, it would help if I can get a list of names of functions.</p>
  
  <p>I specifically intend to use clang, so any help on how to analyze the my header file with clang would be really appreciated.</p>
  
  <p>Meanwhile I will have a look at the clang tutorial here: <a href="https://github.com/loarabia/Clang-tutorial" rel="noreferrer">https://github.com/loarabia/Clang-tutorial</a></p>
  
  <p>Thanks in advance for your help.</p>