Commit 4d4f7785 authored by Robert Bradshaw's avatar Robert Bradshaw

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

--HG--
extra : transplant_source : %CB%09%5D%F7%EE%E8X%EC%99%11%EAJi%A0%DB%05%AA%B1%E6%C1
parent 173c1003
...@@ -142,7 +142,8 @@ class ControlFlow(object): ...@@ -142,7 +142,8 @@ class ControlFlow(object):
def is_tracked(self, entry): def is_tracked(self, entry):
if entry.is_anonymous: if entry.is_anonymous:
return False 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 False
return (entry.is_local or entry.is_pyclass_attr or entry.is_arg or return (entry.is_local or entry.is_pyclass_attr or entry.is_arg or
entry.from_closure or entry.in_closure or entry.error_on_uninitialized) entry.from_closure or entry.in_closure or entry.error_on_uninitialized)
......
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