Commit b3fe8311 authored by Robert Bradshaw's avatar Robert Bradshaw

Don't warn about "uninitialized" stack-allocated C++ class instance variables.

parent 8a74aefc
......@@ -139,7 +139,8 @@ class ControlFlow(object):
def is_tracked(self, entry):
if entry.is_anonymous:
return False
if entry.type.is_array or entry.type.is_struct_or_union:
if (entry.type.is_array or entry.type.is_struct_or_union or
entry.type.is_cpp_class):
return False
return (entry.is_local or entry.is_pyclass_attr or entry.is_arg or
entry.from_closure or entry.in_closure or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment