Hi,<div><br></div><div>the attached change is designed to detect and warn about private unused members of C++ classes. It checks whether a class is fully defined in the current translation unit, i.e. all methods are either defined or pure virtual and all friends are defined. Otherwise, the private member could be used by a function defined in another translation unit.</div>
<div><br></div><div>An initializer does not count as "use", if:</div><div>- the member is a primitive type</div><div>- the member is a pointer</div><div>- the initializer does not take any arguments</div><div><br>
</div><div>Kind regards,</div><div>Daniel</div>