<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 12.06.2017 11:37, Alexander Droste
      via cfe-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+FoqfMaHO__Dy2Mau9HsR_9nDo2V5aPgnBqs7wH+wpyP5oA3w@mail.gmail.com">
      <div dir="ltr">
        <div>Good point. I missed that you're using the C interface but
          it seems like similar functionality is available there:<br>
          <span class="gmail-pl-smi">clang_getPointeeType</span><br>
          <a
href="https://github.com/llvm-mirror/clang/blob/master/include/clang-c/Index.h#L3437"
            moz-do-not-send="true">https://github.com/llvm-mirror/clang/blob/master/include/clang-c/Index.h#L3437</a><br>
          <br>
          <span class="gmail-pl-smi">clang_getElementType</span><br>
          <a
href="https://github.com/llvm-mirror/clang/blob/master/include/clang-c/Index.h#L3513"
            moz-do-not-send="true">https://github.com/llvm-mirror/clang/blob/master/include/clang-c/Index.h#L3513</a><br>
          <br>
        </div>
        <div>Though, I couldn't find functionality to remove the
          qualifiers.<br>
          <br>
        </div>
        <div>-Alex<br>
        </div>
      </div>
    </blockquote>
    <br>
    You have to get somewhat creative for that:
<a class="moz-txt-link-freetext" href="https://github.com/foonathan/cppast/blob/master/src/libclang/type_parser.cpp#L459-L643">https://github.com/foonathan/cppast/blob/master/src/libclang/type_parser.cpp#L459-L643</a><br>
    <br>
    In particular:
<a class="moz-txt-link-freetext" href="https://github.com/foonathan/cppast/blob/master/src/libclang/type_parser.cpp#L163-L183">https://github.com/foonathan/cppast/blob/master/src/libclang/type_parser.cpp#L163-L183</a><br>
  </body>
</html>