Skip to content

find_noncopyable_vars bug #84

@RomanYakovenko

Description

@RomanYakovenko

Hello. Consider the following code:
struct abstract{
virtual void do_smth() = 0;
};

struct holder{
abstract* ptr;
};

find_noncopyable_vars(holder) will return "ptr" member variable as noncopyable variable, which of course wrong.

patch.txt

Attached is a patch, which fixes exactly this situation.
I run the tests and all tests passed (Ubuntu 16.04, Python3.5)

Regards,
Roman

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions