cppclean
cppclean copied to clipboard
False warning of Not used forward declaration
When using forward declaration and templates the cppclean gives false warning. Not sure if this is related to the using keyword or the use of template. To reproduce:
template<typename T>
class Container {
}
class Item;
using ItemContainer = Container<Item>;
I have the same issue with this code in header file :
class MyFwdDeclClass;
bool myFunc(std::vector<MyFwdDeclClass>& vec);
Same issue again when the usage is followed by & :
bool myFunc(MyFwdDeclClass& class);