<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - inner field is missed for struct decl on ast-dump"
   href="https://bugs.llvm.org/show_bug.cgi?id=51444">51444</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>inner field is missed for struct decl on ast-dump
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>temtaime@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello.
Consider :

struct S { int *a; };
typedef int *A;

-ast-dump=json gives :

FieldDecl for S with
          "name": "a",
          "type": {
            "qualType": "int *"
          }

But for typedef there are :

 "name": "A",
      "type": {
        "qualType": "int *"
      },
      "inner": [
        {
          "id": "0x168e942d310",
          "kind": "PointerType",
          "type": {
            "qualType": "int *"
          },
          "inner": [
            {
              "id": "0x168e942c600",
              "kind": "BuiltinType",
              "type": {
                "qualType": "int"
              }
            }
          ]
        }
      ]

Can we add inner to FieldDecl too ? Also i wonder maybe add inner to all "type"
clauses ?
What are the plans for ast dump feature? I think it is very great feature, me,
for example, i am writing a tool that generates bindings for another language
from C headers.
Using libclang directly places some difficulties.
Thanks.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>