[cfe-dev] Get name from RecordDecl
Miklos Vajna via cfe-dev
cfe-dev at lists.llvm.org
Mon May 9 00:34:16 PDT 2016
Hi,
On Fri, May 06, 2016 at 01:02:43PM +0100, Mikhail Ramalho via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> typedef struct
> {
> int __count;
>
> * union*
> * {*
> * int __wch;*
> * char __wchb[4];*
> * } __value;*
>
> } __mbstate_t;
...
> The problem is the inner union, which is not anonymous but I can't get the
> name. The bold assertion always fails.
Have a look at the AST with 'clang++ -Xclang -ast-dump -fsyntax-only',
IIUC the union is anonymous, __value is the name of the member, not of
the union.
Regards,
Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160509/86fe7acf/attachment.sig>
More information about the cfe-dev
mailing list