pycparserext
pycparserext copied to clipboard
Extensions for Eli Bendersky's pycparser
When i want to generate AST of a function, it displays the following error mesages: `Traceback (most recent call last): File "slice_uniq.py", line 227, in split_if(path) File "slice_uniq.py", line 131,...
Hi, I like this software though I found an issue when parsing a preprocessed file with stddef.h included. The software seems to have issues with: ``` typedef struct { long...
- Add support for declarations like `int (* __attribute__((stdcall)) fptr)(void)` - Add a test case for the aforementioned case - Fix regression introduced in #54, which caused function pointer information...
First of all, thanks for your great project, it helps me very much with parsing microsoft function definitions in their headers. In spite of the last point of #59 I...
Is there any functionality in `pycparserext` regarding [basic blocks](https://en.wikipedia.org/wiki/Basic_block)? I.e. parsing the input file and getting a list of basic blocks for each function, or a specific function. If not,...
I am using `pycparserext` to parse, edit and then re-generate OpenCL kernels. During the re-generation phase, with some kernels, I get the following error: ``` File "/test.py", line 131, in...
Using `GnuCParser()` and subclassing `c_ast.NodeVisitor`, I cannot traverse the nodes as in the FuncDefs example in https://github.com/eliben/pycparser/blob/master/examples/func_defs.py It results in the following error: ``` Traceback (most recent call last): [...]...
Support for either of these cases: ``` struct foo_t { struct __attribute__((packed)) { int a; char b; }; }; ``` ``` struct foo_t { struct { int a; char b;...
I have a .h file which I am trying to parse. ``` #include #define MAX_VAL 100 struct { int x; char a[MAX_VAL]; } mahesh_t; ``` after preprocessing it I get...
As the title says, the line number in the Coord object is always set to 0 for Asm nodes. This happens because lineno in the following lines https://github.com/inducer/pycparserext/blob/b602b4de77bee3a9e41223fa1d6bb91dd56209e3/pycparserext/ext_c_parser.py#L300 https://github.com/inducer/pycparserext/blob/b602b4de77bee3a9e41223fa1d6bb91dd56209e3/pycparserext/ext_c_parser.py#L306 https://github.com/inducer/pycparserext/blob/b602b4de77bee3a9e41223fa1d6bb91dd56209e3/pycparserext/ext_c_parser.py#L313...