From 193207c5abf339253e15b59f398da0c1f6f43bee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 15 Nov 2024 13:21:49 +0200 Subject: improve loplugin passparamsbyref I think I managed to disable this when I converted it to use the shared plugin infrastructure. So fix that, and then make it much smarter to avoid various false positives. Change-Id: I0a4657cff3b40a00434924bf764d024dbfd7d5b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176646 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/sharedvisitor/dummyplugin.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compilerplugins/clang/sharedvisitor') diff --git a/compilerplugins/clang/sharedvisitor/dummyplugin.hxx b/compilerplugins/clang/sharedvisitor/dummyplugin.hxx index 1ef87416a907..8d48622e44ca 100644 --- a/compilerplugins/clang/sharedvisitor/dummyplugin.hxx +++ b/compilerplugins/clang/sharedvisitor/dummyplugin.hxx @@ -48,6 +48,8 @@ public: bool TraverseCXXCatchStmt( CXXCatchStmt* ) { return complain(); } bool TraverseCXXDestructorDecl( CXXDestructorDecl* ) { return complain(); } bool TraverseFunctionDecl( FunctionDecl* ) { return complain(); } + bool TraverseCXXMethodDecl( CXXMethodDecl* ) { return complain(); } + bool TraverseCXXConstructorDecl( CXXConstructorDecl* ) { return complain(); } bool TraverseSwitchStmt( SwitchStmt* ) { return complain(); } bool TraverseImplicitCastExpr( ImplicitCastExpr* ) { return complain(); } bool TraverseCStyleCastExpr( CStyleCastExpr* ) { return complain(); } -- cgit