Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package clazy for openSUSE:Factory checked 
in at 2025-04-07 17:37:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/clazy (Old)
 and      /work/SRC/openSUSE:Factory/.clazy.new.1907 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "clazy"

Mon Apr  7 17:37:31 2025 rev:30 rq:1267387 
version:1.14git.20250301T021020~9afca196

Changes:
--------
--- /work/SRC/openSUSE:Factory/clazy/clazy.changes      2025-01-01 
23:04:37.620376188 +0100
+++ /work/SRC/openSUSE:Factory/.clazy.new.1907/clazy.changes    2025-04-07 
17:37:50.335890250 +0200
@@ -1,0 +2,23 @@
+Sun Apr  6 09:25:24 UTC 2025 - Christophe Marin <christo...@krop.fr>
+
+- Add patches:
+  * clazy-llvm20.patch
+  * clazy-llvm20_2.patch
+
+-------------------------------------------------------------------
+Thu Apr 03 12:30:57 UTC 2025 - Christophe Marin <christo...@krop.fr>
+
+- Switch back to a git snapshot until a version compatible with
+  LLVM 20 gets released
+- Update to version 1.14git.20250301T021020~9afca196:
+  * Add new check: qbytearray-conversion-to-c-style
+  * QProcess::start was wrongly flagged as deprecated
+  * HOWTO.md: add a note about running the tests from the build dir directly
+  * Don't warn for missing Q_OBJECT macro for nested classes.
+  * qt6-deprecated-api-fixes: Only flag QString assignment to QDir
+  * Properly document exclude-next-line clazy directive
+  * SuppressionManager: Use continue statement instead of nesting large block 
in if-statement
+  * SuppressionManager: Also handle clazy:skip after early return
+  * SuppressionManager: Rework controlflow to avoid multiple regex checks in 
same comment
+
+-------------------------------------------------------------------

Old:
----
  clazy-1.13.tar.xz
  clazy-1.13.tar.xz.sig
  clazy.keyring

New:
----
  _service
  _servicedata
  clazy-1.14git.20250301T021020~9afca196.obscpio
  clazy-llvm20.patch
  clazy-llvm20_2.patch
  clazy.obsinfo

BETA DEBUG BEGIN:
  New:- Add patches:
  * clazy-llvm20.patch
  * clazy-llvm20_2.patch
  New:  * clazy-llvm20.patch
  * clazy-llvm20_2.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ clazy.spec ++++++
--- /var/tmp/diff_new_pack.Vdnz6a/_old  2025-04-07 17:37:50.795909494 +0200
+++ /var/tmp/diff_new_pack.Vdnz6a/_new  2025-04-07 17:37:50.795909494 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package clazy
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,22 @@
 #
 
 
-%define release_ver 1.13
+# %%define release_ver 1.14
 Name:           clazy
-Version:        1.13.0
+Version:        1.14git.20250301T021020~9afca196
 Release:        0
 Summary:        Qt oriented code checker based on the Clang framework
 License:        LGPL-2.0-or-later
 URL:            https://apps.kde.org/clazy/
-Source0:        
https://download.kde.org/stable/clazy/%{release_ver}/src/%{name}-%{release_ver}.tar.xz
-Source1:        
https://download.kde.org/stable/clazy/%{release_ver}/src/%{name}-%{release_ver}.tar.xz.sig
+Source0:        %{name}-%{version}.tar.xz
+# TODO Uncomment when we get a new release
+# Source0:        
https://download.kde.org/stable/clazy/%%{release_ver}/src/%%{name}-%%{release_ver}.tar.xz
+# Source1:        
https://download.kde.org/stable/clazy/%%{release_ver}/src/%%{name}-%%{release_ver}.tar.xz.sig
 # 
https://invent.kde.org/sysadmin/release-keyring/-/blob/master/keys/a...@key1.asc?ref_type=heads
-Source2:        clazy.keyring
+# Source2:        clazy.keyring
+# PATCH-FIX-UPSTREAM
+Patch0:         clazy-llvm20.patch
+Patch1:         clazy-llvm20_2.patch
 BuildRequires:  clang
 BuildRequires:  clang-devel >= 11.0
 BuildRequires:  cmake >= 3.13
@@ -46,7 +51,7 @@
 allocations to misusage of API, including fix-its for automatic refactoring.
 
 %prep
-%autosetup -p1 -n %{name}-%{release_ver}
+%autosetup -p1
 
 # When exporting CXX=clazy, the executable matching libraries used to build 
clazy must be used
 # NOTE: 'readlink -f' can't be used, or the result won't be 'clang++-xx' but 
'clang-xx', which will cause linker errors

++++++ _service ++++++
<services>
  <service name="obs_scm" mode="disabled">
    <param name="changesgenerate">enable</param>
    <param name="versionformat">1.14git.%ci~%h</param>
    <param name="url">https://invent.kde.org/sdk/clazy.git</param>
    <param name="scm">git</param>
  </service>
  <service name="set_version" mode="disabled" />
  <service name="tar" mode="buildtime"/>
  <service name="recompress" mode="buildtime">
    <param name="file">*.tar</param>
    <param name="compression">xz</param>
  </service>
</services>

++++++ _servicedata ++++++
<servicedata>
<service name="tar_scm">
                <param name="url">https://invent.kde.org/sdk/clazy.git</param>
              <param 
name="changesrevision">9afca196d4544f5cc2e9df19c75f9a2c626ff618</param></service></servicedata>
(No newline at EOF)

++++++ clazy-llvm20.patch ++++++
>From bea10f2260fcf311b2e0b310a713e85270ebb5e1 Mon Sep 17 00:00:00 2001
From: Alexander Lohnau <alexander.loh...@gmx.de>
Date: Sun, 30 Mar 2025 16:52:03 +0200
Subject: [PATCH] use-static-qregularexpression: Adjust to type of variable
 having changed from xvalue to lvalue in clang20

---
 src/checks/level0/use-static-qregularexpression.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/checks/level0/use-static-qregularexpression.cpp 
b/src/checks/level0/use-static-qregularexpression.cpp
index 176a6691..71b1370a 100644
--- a/src/checks/level0/use-static-qregularexpression.cpp
+++ b/src/checks/level0/use-static-qregularexpression.cpp
@@ -196,6 +196,12 @@ void UseStaticQRegularExpression::VisitStmt(clang::Stmt 
*stmt)
                 emitWarning(obj->getBeginLoc(), "Don't create temporary 
QRegularExpression objects. Use a static QRegularExpression object instead");
                 return;
             }
+
+            // In clang20, "auto m2 = 
QRegularExpression("[123]").globalMatch(selectedText);" is apparently an l-value
+            if (auto *temp = dyn_cast<MaterializeTemporaryExpr>(obj); temp && 
isTemporaryQRegexObj(temp, lo())) {
+                emitWarning(temp->getBeginLoc(), "Don't create temporary 
QRegularExpression objects. Use a static QRegularExpression object instead");
+            }
+
         } else if (obj->isXValue()) {
             // is it a temporary?
             auto *temp = dyn_cast<MaterializeTemporaryExpr>(obj);
-- 
GitLab


++++++ clazy-llvm20_2.patch ++++++
>From ddf05137eecf9d126c914ee6a03c0c2f53c9948e Mon Sep 17 00:00:00 2001
From: Alexander Lohnau <alexander.loh...@gmx.de>
Date: Sun, 30 Mar 2025 10:30:18 +0200
Subject: [PATCH] Add preprocessor if statement for method that is no longer in
 clang20

https://invent.kde.org/sdk/clazy/-/issues/27

Test failures need to be adressed separately
---
 src/FixItExporter.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/FixItExporter.cpp b/src/FixItExporter.cpp
index f4c14171..a6edcb25 100644
--- a/src/FixItExporter.cpp
+++ b/src/FixItExporter.cpp
@@ -191,7 +191,9 @@ void FixItExporter::Diag(SourceLocation Loc, unsigned 
DiagID)
     // clear out any current diagnostic, and let the downstream client
     // format the diagnostic.
     DiagEngine.setClient(Client, false);
+#if LLVM_VERSION_MAJOR < 20
     DiagEngine.Clear();
+#endif
     DiagEngine.Report(Loc, DiagID);
     DiagEngine.setClient(this, false);
 }
-- 
GitLab


++++++ clazy.obsinfo ++++++
name: clazy
version: 1.14git.20250301T021020~9afca196
mtime: 1740795020
commit: 9afca196d4544f5cc2e9df19c75f9a2c626ff618

Reply via email to