codepropertygraph icon indicating copy to clipboard operation
codepropertygraph copied to clipboard

Enums mostly unsupported

Open m1cm1c opened this issue 4 years ago • 1 comments

Enums are mostly unsupported. In particular, I noticed the following issues:

  • There is no way of showing all symbolic values an enum can take. They just do not occur in the AST.
  • There is no way of showing a single numeric value an enum can take. They just do not occur in the AST.
  • The types of identifier nodes of enum fields are set to ANY. I'm not talking about the identifier nodes of variables of the enum's type. These are set correctly. But the identifiers of enum fields (i.e. their symbolic names) are not.

m1cm1c avatar Dec 20 '20 14:12 m1cm1c

I'm not talking about the identifier nodes of variables of the enum's type. These are set correctly.

They are. But I just noticed that they are set in a way incompatible to the enum's TYPE_DECL node because in TYPE_DECL nodes, keyword enum is missing.

m1cm1c avatar Dec 20 '20 14:12 m1cm1c