| commit | 2fe32490f097ac107603ba5b1fa15599d720b8f6 | [log] |
|---|---|---|
| author | Noel Grandin <noel@peralex.com> | Thu Jun 23 15:13:58 2016 +0200 |
| committer | Noel Grandin <noel@peralex.com> | Thu Jun 23 15:14:13 2016 +0200 |
| tree | b028bc5fd9089b7986989c15b1c56828efdf2aec | |
| parent | 7de0439fe25d3d2b133253db76df6515bb272389 [diff] |
loplugin singlevalfields, need to check default constructor code too Change-Id: Idcc8de6f1d403a57c59e84774bd7a97e2f3fc224
diff --git a/compilerplugins/clang/singlevalfields.cxx b/compilerplugins/clang/singlevalfields.cxx index 1a511ab..6d94ef7 100644 --- a/compilerplugins/clang/singlevalfields.cxx +++ b/compilerplugins/clang/singlevalfields.cxx
@@ -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* );