diff options
author | Amir Gonnen <amirgonnen@gmail.com> | 2019-03-26 14:53:19 +0200 |
---|---|---|
committer | Eli Bendersky <eliben@users.noreply.github.com> | 2019-03-26 05:53:19 -0700 |
commit | 96059858252ea3673226a9a4d03a356bd51ba47e (patch) | |
tree | b9372d42024d60bac15c6aa9a8aa66ca24498e5b /.gitignore | |
parent | 992715f12aef69eb1351308f14fb5f1ff972ce57 (diff) | |
download | pycparser-96059858252ea3673226a9a4d03a356bd51ba47e.tar.gz |
Fix array type generation (#312) (#313)
* Fix array type generation (#312)
Also added dim_quals handling to _generate_type
Exmaple:
>>> ast = parser.parse('int g(const int a[const 20]){}')
>>> gen.visit(ast.ext[0].decl.type.args.params[0])
'const int a[const 20]'
>>> gen.visit(ast.ext[0].decl.type.args.params[0].type)
'int[const 20]'
* Added TypeDecl generation. Added tests
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,4 +14,4 @@ parser.out .tox utils/z.c *.egg-info - +*.swp |