[Libreoffice-commits] core.git: compilerplugins/clang

Noel Grandin noel at peralex.com
Thu Jun 23 13:14:41 UTC 2016


 compilerplugins/clang/singlevalfields.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 2fe32490f097ac107603ba5b1fa15599d720b8f6
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Jun 23 15:13:58 2016 +0200

    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* );


More information about the Libreoffice-commits mailing list