summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-10 13:11:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-10 15:49:56 +0200
commit611fe67394820e589e86f543c614632fc273eb5e (patch)
tree3d7da0487a34a8e5318cca1e0590b42953128076
parent27ebceb366356f65c836e7edcc3609193f6e009c (diff)
loplugin:unusedenumconstants add support for ParenListExpr
Change-Id: I3dc2a5e4c0cae9a9ae955118e77eae63c17f7242 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135590 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-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 a04117343860..5f91929a1431 100644
--- a/compilerplugins/clang/unusedenumconstants.cxx
+++ b/compilerplugins/clang/unusedenumconstants.cxx
@@ -265,6 +265,10 @@ walk_up:
{
goto walk_up;
}
+ else if (isa<ParenListExpr>(parent))
+ {
+ goto walk_up;
+ }
else if (isa<UnresolvedLookupExpr>(parent)
|| isa<CompoundStmt>(parent))
{