title: How to find out whether a member function is const or volatile with libclang?
body: <p>I have an instance of <code>CXCursor</code> of kind <code>CXCursor_CXXMethod</code>. I want to find out if the function is <code>const</code> or <code>volatile</code>, for example:</p>
  
  <pre><code>class Foo {
  public:
      void bar() const;
      void baz() volatile;
      void qux() const volatile;
  };
  </code></pre>
  
  <p>I could not find anything useful in the documentation of libclang. I tried <code>clang_isConstQualifiedType</code> and <code>clang_isVolatileQualifiedType</code> but these always seem to return <code>0</code> on C++ member function types.</p>