inspect initializations
This commit is contained in:
parent
331733e9e0
commit
fdd73d893c
@ -27,6 +27,12 @@ class ForbiddenLineVisitor(pycparser.c_ast.NodeVisitor):
|
|||||||
v.visit(node.rvalue)
|
v.visit(node.rvalue)
|
||||||
self.errors.extend(v.errors)
|
self.errors.extend(v.errors)
|
||||||
|
|
||||||
|
def visit_Decl(self, node):
|
||||||
|
if node.init:
|
||||||
|
v = ForbiddenOpVisitor();
|
||||||
|
v.visit(node.init)
|
||||||
|
self.errors.extend(v.errors)
|
||||||
|
|
||||||
def visit_FuncCall(self, node):
|
def visit_FuncCall(self, node):
|
||||||
if node.args:
|
if node.args:
|
||||||
v = ForbiddenOpVisitor();
|
v = ForbiddenOpVisitor();
|
||||||
|
Loading…
Reference in New Issue
Block a user