https://bugs.llvm.org/show_bug.cgi?id=51444
Bug ID: 51444
Summary: inner field is missed for struct decl on ast-dump
Product: clang
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs