loplugin singlevalfields, need to check default constructor code too

Change-Id: Idcc8de6f1d403a57c59e84774bd7a97e2f3fc224
This commit is contained in:
Noel Grandin
2016-06-23 15:13:58 +02:00
parent 7de0439fe2
commit 2fe32490f0

View File

@@ -90,6 +90,8 @@ public:
}
bool shouldVisitTemplateInstantiations () const { return true; }
// to catch compiler-generated constructors
bool shouldVisitImplicitCode() const { return true; }
bool VisitFieldDecl( const FieldDecl* );
bool VisitMemberExpr( const MemberExpr* );