compilerplugins/clang/unusedenumconstants.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 611fe67394820e589e86f543c614632fc273eb5e
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Jun 10 13:11:35 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Jun 10 15:49:56 2022 +0200

    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.gran...@collabora.co.uk>

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))
     {

Reply via email to