Fix recursive loop in parsing pointer to self struct
authorBrenden Blanco <bblanco@plumgrid.com>
Tue, 11 Aug 2015 19:45:00 +0000 (12:45 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Tue, 11 Aug 2015 19:45:00 +0000 (12:45 -0700)
commitdfcdf0a0d1091a69b55a93d0d55ab59727abb69c
tree186f70636946dcca770eccf91954df1853d5f315
parent0d7245dcf1b23c1de768198f93532a4cf86b7ef9
Fix recursive loop in parsing pointer to self struct

Issue occurs in the description visitor class, when the struct used in a
map key is a pointer to self, as in:

struct node;
struct node {
  struct node *next;
};

Avoid this in the desc by using "unsigned long long" for all pointers.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
src/cc/frontends/clang/b_frontend_action.cc
tests/cc/test_clang.py