ufcpp / NonCopyableAnalyzer

An analyzer for Non-Copyable structs.
MIT License
29 stars 4 forks source link

nested struct #6

Closed ufcpp closed 6 years ago

ufcpp commented 6 years ago
[NonCopyable] struct A { }

// ok
class OtherClass
{
    A a;
}

// ok
[NonCopyable] struct OtherNonCopyable
{
    A a;
}

// NG
struct OtherCopyableStruct
{
    A a;
}
ufcpp commented 6 years ago

https://github.com/ufcpp/NonCopyableAnalyzer/commit/10f64313d93fb35c10969cea5e4f9a1166429863