From beb9959896bf15c306fdbbd9d130e8dffb7062c1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 8 Jul 2024 12:01:37 +0200 Subject: loplugin:unusedenumconstants update for new clang AST node Change-Id: I5838f4fded09ad0f4eabc2dbf38ac2eb5c60777e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170182 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/unusedenumconstants.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compilerplugins/clang/unusedenumconstants.cxx') diff --git a/compilerplugins/clang/unusedenumconstants.cxx b/compilerplugins/clang/unusedenumconstants.cxx index 692faa0fb5e9..692a37e4e755 100644 --- a/compilerplugins/clang/unusedenumconstants.cxx +++ b/compilerplugins/clang/unusedenumconstants.cxx @@ -271,6 +271,10 @@ walk_up: { goto walk_up; } + else if (isa(parent)) + { + goto walk_up; + } else if (isa(parent) || isa(parent)) { -- cgit