diff options
author | Vitaly Cheptsov <4348897+vit9696@users.noreply.github.com> | 2021-10-04 16:20:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 06:20:47 -0700 |
commit | 14ffe7bc486805c568403757d8634211f8458451 (patch) | |
tree | 991da5b6498df6bd37d1bc855dbf325c33f96ad4 /pycparser/_c_ast.cfg | |
parent | 007e79e5ba45d3f3c4325578a91f7786a7b88cfb (diff) | |
download | pycparser-14ffe7bc486805c568403757d8634211f8458451.tar.gz |
Implement _Alignas and _Alignof support with tests (#435)
* Implement _Alignas and _Alignof support with tests
* Improve testing and avoid unnecessary alignas for typedef
* Add more tests
* Drop legacy artifact
* Remove extra _add_declaration_specifier call
* Drop custom equality comparators for now
Co-authored-by: vit9696 <vit9696@users.noreply.github.com>
Diffstat (limited to 'pycparser/_c_ast.cfg')
-rw-r--r-- | pycparser/_c_ast.cfg | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pycparser/_c_ast.cfg b/pycparser/_c_ast.cfg index e9b5685..0626533 100644 --- a/pycparser/_c_ast.cfg +++ b/pycparser/_c_ast.cfg @@ -25,6 +25,8 @@ ArrayRef: [name*, subscript*] # Assignment: [op, lvalue*, rvalue*] +Alignas: [alignment*] + BinaryOp: [op, left*, right*] Break: [] @@ -59,7 +61,7 @@ Continue: [] # init: initialization value, or None # bitsize: bit field size, or None # -Decl: [name, quals, storage, funcspec, type*, init*, bitsize*] +Decl: [name, quals, align, storage, funcspec, type*, init*, bitsize*] DeclList: [decls**] @@ -172,14 +174,14 @@ TernaryOp: [cond*, iftrue*, iffalse*] # A base type declaration # -TypeDecl: [declname, quals, type*] +TypeDecl: [declname, quals, align, type*] # A typedef declaration. # Very similar to Decl, but without some attributes # Typedef: [name, quals, storage, type*] -Typename: [name, quals, type*] +Typename: [name, quals, align, type*] UnaryOp: [op, expr*] |