diff options
author | Peter Wu <lekensteyn@gmail.com> | 2011-12-04 13:21:23 +0000 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2011-12-04 13:21:23 +0000 |
commit | bcc2906f62f7c0565cb0b2efe9b2c4d1275a122e (patch) | |
tree | 08d94dfe81b22e5d1cd750e0e5edeea7f6ea88f4 /pp2cc.py | |
parent | b0fdcbbf06175cd503e5b0ecefa49759f9872dbd (diff) | |
download | pp2cc-bcc2906f62f7c0565cb0b2efe9b2c4d1275a122e.tar.gz |
Replace outdated statements list by isTypeStatement
Diffstat (limited to 'pp2cc.py')
-rwxr-xr-x | pp2cc.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1260,9 +1260,7 @@ class Parse(object): if linked_node.type in ("ID", "Constant", "UnaryOp", "FuncCall", "Cast", "BinaryOp", "TernaryOp", "Assignment", "ExprList", "ArrayRef"): lines += getattr(self, "parse" + linked_node.type)(linked_node) - elif linked_node.type in ("Compound", "If", "Return", "DoWhile", - "While", "For", "Decl", "FuncDef", "Break", "Continue", - "EmptyStatement"): + elif linked_node.isTypeStatement(): self.logger.error("A statement is used in expression context", linked_node=linked_node) elif linked_node.type in ("CompoundLiteral",# won't be supported |