[Rock-dev] clang vs. typelib

Sylvain Joyeux bir.sylvain at gmail.com
Wed Jul 16 20:37:25 CEST 2014


Just tried it out ... clang generates piles of errors because it is
trying to include GCC headers. Did you encounter anything like it ?

One thing you may have missed: types need to be resolved recursively.
That is, you need to resolve the fields types, and the fields types of
the fields types and so on and so forth.

Other than that, it really looks promising ...

Sylvain

On Wed, Jul 16, 2014 at 5:31 PM, Martin Zenzes <martin.zenzes at dfki.de> wrote:
> I don't know where to continue in this thread ;-)
>
> so, after another day we are at this stage:
>
> ./bin/extractor $ROCK_ROOT/base/types/base/Pose.hpp --
> -I$ROCK_ROOT/base/types -I/usr/include/eigen3 -x c++
> ... (output see below)
> 15.47s user 0.05s system 99% cpu 15.519 total
>
> which is the only downpoint at this stage -- 15seconds for one header...
> not sure where the time is spent, leaving out the ast_matcher (basically
> running an empty finder which does nothing) does not change the amount
> of time at all... well, this is for tomorrow...
>
> only the declarations in the given header file are outputted. no json
> database is needed, the options after the double-dash are normal options
> passed to the compiler.
>
> greetings
>      martin
>
> got 'struct' named 'base::PoseUpdateThreshold' in
> '/home/mzenzes/TransTerrA/rock/base/types/base/Pose.hpp:74:12'
> Type base::PoseUpdateThreshold
>    Size 16
>    Members :
>      Field base::PoseUpdateThreshold::distance
>      Offset 0
>      Decl Name distance
>      Qual Type double
>
>      Field base::PoseUpdateThreshold::angle
>      Offset 64
>      Decl Name angle
>      Qual Type double
>
> got 'struct' named 'base::Pose' in
> '/home/mzenzes/TransTerrA/rock/base/types/base/Pose.hpp:127:12'
> Type base::Pose
>    Size 56
>    Members :
>      Field base::Pose::position
>      Offset 0
>      Decl Name position
>      Qual Type Position
>
>      Field base::Pose::orientation
>      Offset 192
>      Decl Name orientation
>      Qual Type Orientation
>
> got 'struct' named 'base::Pose2D' in
> '/home/mzenzes/TransTerrA/rock/base/types/base/Pose.hpp:228:12'
> Type base::Pose2D
>    Size 24
>    Members :
>      Field base::Pose2D::position
>      Offset 0
>      Decl Name position
>      Qual Type Position2D
>
>      Field base::Pose2D::orientation
>      Offset 128
>      Decl Name orientation
>      Qual Type Orientation2D
>
>
> --
> M.Sc. Martin Zenzes
> Space Robotics
>
> Hauptgeschäftsstelle Standort Bremen:
> DFKI GmbH
> Robotics Innovation Center
> Robert-Hooke-Straße 5
> 28359 Bremen, Germany
>
> Phone: +49 (0) 421 178 45 - 6658
> Fax: +49 (0) 421 178 45 - 4150
> E-Mail: martin.zenzes at dfki.de
>
> Weitere Informationen: http://www.dfki.de/robotik
> -----------------------------------------------------------------------
> Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
> Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
> Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
> (Vorsitzender) Dr. Walter Olthoff
> Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
> Amtsgericht Kaiserslautern, HRB 2313
> Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
> USt-Id.Nr.: DE 148646973
> Steuernummer: 19/673/0060/3
> -----------------------------------------------------------------------
>
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev


More information about the Rock-dev mailing list