improve support for typedefs
commit47d2f27cb15b2a39d0093b2ecc293a0db8fd1222
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 23 May 2015 10:22:47 +0000 (23 12:22 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 24 May 2015 15:57:25 +0000 (24 17:57 +0200)
tree8bc382c9448fb03f0e550420a98bcfb932f7af66
parentb92c55e61b60960dd033791542522e496c003d0d
improve support for typedefs

In particular, call getTypedefNameForAnonDecl to check if there
is a typedef associated to a record declaration and, if so,
used that instead of the record declaration.
The record declaration may not have a printable name, but
the typedef declaration always does.

Reported-by: Michael Kruse <MichaelKruse@meinersbur.de>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
configure.ac
scan.cc
tests/struct13.c [new file with mode: 0644]
tests/struct13.scop [new file with mode: 0644]