summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-07-08 12:01:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-07-09 14:25:04 +0200
commitbeb9959896bf15c306fdbbd9d130e8dffb7062c1 (patch)
tree8f7d5235764ce82c0c5e171510953be22beabb3c /compilerplugins
parent9eb79d196472b5ff6bb0f25561208a39e52ae7c5 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/unusedenumconstants.cxx4
1 files changed, 4 insertions, 0 deletions
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<CXXDefaultInitExpr>(parent))
+ {
+ goto walk_up;
+ }
else if (isa<UnresolvedLookupExpr>(parent)
|| isa<CompoundStmt>(parent))
{