File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -433,11 +433,12 @@ def p_xxx_declarator_2(self, p):
433433 while not isinstance (innermost_decl , c_ast .TypeDecl ):
434434 try :
435435 innermost_decl = innermost_decl .type
436- except AttributeError :
436+ except AttributeError as err :
437437 raise NotImplementedError (
438- "cannot attach asm or attributes to "
439- "nodes of type '%s'"
440- % type (innermost_decl ))
438+ "cannot attach asm or attributes to "
439+ "nodes of type '%s'"
440+ % type (innermost_decl )
441+ ) from err
441442
442443 decl_ext = to_decl_ext (innermost_decl )
443444
@@ -563,14 +564,6 @@ def p_gnu_unary_expression(self, p):
563564 p [2 ] if len (p ) == 3 else p [3 ],
564565 self ._token_coord (p , 1 ))
565566
566- def p_gnu_unary_expression (self , p ):
567- """ unary_expression : __ALIGNOF__ LPAREN type_name RPAREN
568- """
569- p [0 ] = c_ast .UnaryOp (
570- p [1 ],
571- p [2 ] if len (p ) == 3 else p [3 ],
572- self ._token_coord (p , 1 ))
573-
574567 def p_statement (self , p ):
575568 """ statement : labeled_statement
576569 | expression_statement
You can’t perform that action at this time.
0 commit comments