Andreas Klöckner
Andreas Klöckner
[Here's the code](https://github.com/inducer/pycparserext/blob/master/pycparserext/ext_c_parser.py#L238) that parses that stuff. Can you try and cook up a patch?
I've merged your changes, thanks! How would I reproduce the asm notation reconstruction issue?
Sorry for the dumb question: Is the four-component version with two empty components not equivalent to the two-component version?
You could make an "abbreviated" `_round_trip_matches` (`_round_trip_match_source_only`?) that asserts that the parsed source gets regenerated. Also, please fix the linter failures.
> The former will fail because the AST does not store, for example, the exact attribute position and it will get moved. But there might be a source representation that's...
> I want to be able to test that attributes are parsed correctly in all possible places, not only in their "canonical" form I agree with that goal. That's where...
> So, you want them in addition to what I already have? Probably can do that Yeah, if the "reproduces canonical form" thing is easy to do, I'd appreciate having...
It looks like the source code has an `__attribute__(stuff)` somewhere in a function declaration where it's not yet supported. I'd be happy to take a patch.
No, sorry. Look for `_G_config.h` in the preprocessed source and try to figure out what parser production you're in, then try to fix the parser. I'd be happy to take...
I'd be happy for any and all improvements to the tests. I think the round-trip tests I proposed in #59 are a reasonable thing to pursue, but I'm open to...