I was debugging a problem and noticed that it would have been helpful to have the type of each FieldDecl when looking at the output from ClangASTSource::layoutRecordType
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
AFAICT the call to getType end up in ValueDecl:
QualType getType() const { return DeclType; }and this is just returning a field.
clang-format: please reformat the code
- "LRT (FieldDecl*){0}, Name = '{1}', Type = '{2}', Offset = {3} bits", - *fi, fi->getName(), fi->getType().getAsString(), field_offsets[*fi]); + "LRT (FieldDecl*){0}, Name = '{1}', Type = '{2}', Offset = " + "{3} bits", + *fi, fi->getName(), fi->getType().getAsString(), + field_offsets[*fi]);