summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-23 15:13:58 +0200
committerNoel Grandin <noel@peralex.com>2016-06-23 15:14:13 +0200
commit2fe32490f097ac107603ba5b1fa15599d720b8f6 (patch)
treeb028bc5fd9089b7986989c15b1c56828efdf2aec /compilerplugins
parent7de0439fe25d3d2b133253db76df6515bb272389 (diff)
loplugin singlevalfields, need to check default constructor code too
Change-Id: Idcc8de6f1d403a57c59e84774bd7a97e2f3fc224
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/singlevalfields.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/singlevalfields.cxx b/compilerplugins/clang/singlevalfields.cxx
index 1a511abc333a..6d94ef77f8b4 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* );