You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//these all fail to be parsed, the typedef equivalents are correctly parsed.
using aType = int[4];
using fType = void(int);
using lType = struct {int x;int y;int z;int t;};
using sType = struct l{int x;int y;int z;int t;};
using vType = union {int x;int y;int z;int t;};
using uType = union v{int x;int y;int z;int t;};
using lrefType = struct {int x;int y;int z;int t;}&;
using vrefType = union {int x;int y;int z;int t;}&;
using lptrType = struct {int x;int y;int z;int t;}*;
using vptrType = union {int x;int y;int z;int t;}*;
The text was updated successfully, but these errors were encountered:
How are you intending to use the parsed data? If you just need it to parse then this should be straightforward to do, but I note that the way I implemented typedefs is a bit annoying to actually use the data.
I would use them to generate some kind of documentation. (I would generate a json file, and then I would use the json in my program as the source).
It would be OK for me analogous to the way the typedefs are implemented as it contains all of the necessary data.
Basically what I need is equivalent to be possible to reconstruct the original alias declaration considering also the enclosing context (namespace scope, class scope), based on the the parsed data (I would use the generated json for this purpose).
Problem description
It seems that the new style of alias declarations are not completely implemented.
The equivalent typedefs are working as expected.
I provide below a short program which works under compiler explorer, but is not parsed correctly (I took the declaration part into the demo)
C++ code that can't be parsed correctly (please double-check that https://robotpy.github.io/cxxheaderparser/ has the same error)
The text was updated successfully, but these errors were encountered: