13 Commits

Author SHA256 Message Date
eaeb61b8b2 Accepting request 1312829 from devel:tools:compiler
- Build the clang-tidy plugin. The required headers are no longer deleted.

OBS-URL: https://build.opensuse.org/request/show/1312829
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/clazy?expand=0&rev=34
2025-10-22 10:15:53 +00:00
Christophe Marin
50a395adba OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/clazy?expand=0&rev=75 2025-10-21 12:22:54 +00:00
a82a55bf2c Accepting request 1302998 from devel:tools:compiler
Update to 1.16

OBS-URL: https://build.opensuse.org/request/show/1302998
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/clazy?expand=0&rev=33
2025-09-08 07:57:18 +00:00
Christophe Marin
cb7239c060 1.16
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/clazy?expand=0&rev=73
2025-09-06 08:54:37 +00:00
e0a770ce56 Accepting request 1285903 from devel:tools:compiler
Update to 1.15

OBS-URL: https://build.opensuse.org/request/show/1285903
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/clazy?expand=0&rev=32
2025-06-16 09:12:18 +00:00
Christophe Marin
bc88a331df OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/clazy?expand=0&rev=71 2025-06-15 14:46:30 +00:00
d519e8e9c6 Accepting request 1273080 from devel:tools:compiler
Update to 1.14

OBS-URL: https://build.opensuse.org/request/show/1273080
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/clazy?expand=0&rev=31
2025-04-28 14:17:55 +00:00
Christophe Marin
50fc921e5a OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/clazy?expand=0&rev=69 2025-04-28 11:04:38 +00:00
5a4b5fbdab Accepting request 1267387 from devel:tools:compiler
- Add patches:
  * clazy-llvm20.patch
  * clazy-llvm20_2.patch

- 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

OBS-URL: https://build.opensuse.org/request/show/1267387
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/clazy?expand=0&rev=30
2025-04-07 15:37:31 +00:00
Christophe Marin
3a39ed2959 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/clazy?expand=0&rev=67 2025-04-06 09:35:34 +00:00
Christophe Marin
bef177f43b OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/clazy?expand=0&rev=66 2025-04-03 12:37:53 +00:00
Christophe Marin
7e1a2c658d OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/clazy?expand=0&rev=65 2025-04-03 12:35:52 +00:00
Christophe Marin
b542440d45 Switch back to a git snapshot
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/clazy?expand=0&rev=64
2025-04-03 12:33:45 +00:00
6 changed files with 79 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6d36da0c9d4d2f8602fb52910bde34bf27501ff758f6182b1a46fa0a91779ef4
size 434648

Binary file not shown.

3
clazy-v1.16.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0fa9e9ce54969edfb2c831815b724be9ab89c41ac3a40c0033c558173c4c302b
size 443752

BIN
clazy-v1.16.tar.xz.sig Normal file

Binary file not shown.

View File

@@ -1,3 +1,67 @@
-------------------------------------------------------------------
Tue Oct 21 12:16:15 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Build the clang-tidy plugin. The required headers are no longer deleted.
-------------------------------------------------------------------
Sat Sep 6 08:45:16 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Update to 1.16
* New clang-tidy plugin
-------------------------------------------------------------------
Sun Jun 15 14:40:26 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Update to 1.15
* install-event-filter: Fix crash when there is no child at the
given depth (kde#464372)
* fully-qualified-moc-types: Fix enum/enum class not being
evaluated (kde#423780)
* Fixed crash in qstring-comparison-to-implicit-char (kde#502458)
* Fixed crash when fully-qualified-moc-types encounters signals
with expressions like "std::bitset<int(8)>"
* Fixed crash in qvariant-template-instantiation
-------------------------------------------------------------------
Mon Apr 28 10:55:24 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Update to 1.14.0
* Clazy warnings for the following line can be disabled, for
example: clazy:exclude-next-line=check1,check2
* Support for compilation against Clang 20
* increase verbosity of some warning messages
- checks `function-args-by-value` and `function-args-by-ref`:
add function name and parameter name to warning message
- checks `unused-non-trivial-variable` and
`non-pod-global-static`: add variable name to warning message
* New checks: qbytearray-conversion-to-c-style
- Drop patches, merged upstream:
* clazy-llvm20.patch
* clazy-llvm20_2.patch
-------------------------------------------------------------------
Sun Apr 6 09:25:24 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Add patches:
* clazy-llvm20.patch
* clazy-llvm20_2.patch
-------------------------------------------------------------------
Thu Apr 03 12:30:57 UTC 2025 - Christophe Marin <christophe@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
-------------------------------------------------------------------
Mon Dec 30 08:32:40 UTC 2024 - Christophe Marin <christophe@krop.fr>

View File

@@ -1,7 +1,7 @@
#
# spec file for package clazy
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,9 @@
#
%define release_ver 1.13
%define release_ver v1.16
Name: clazy
Version: 1.13.0
Version: 1.16.0
Release: 0
Summary: Qt oriented code checker based on the Clang framework
License: LGPL-2.0-or-later
@@ -28,11 +28,11 @@ Source1: https://download.kde.org/stable/clazy/%{release_ver}/src/%{name}
# https://invent.kde.org/sysadmin/release-keyring/-/blob/master/keys/alex@key1.asc?ref_type=heads
Source2: clazy.keyring
BuildRequires: clang
BuildRequires: clang-devel >= 11.0
BuildRequires: clang-devel >= 19.0
BuildRequires: cmake >= 3.13
%if 0%{?suse_version} == 1500
BuildRequires: gcc13-PIE
BuildRequires: gcc13-c++
BuildRequires: gcc14-PIE
BuildRequires: gcc14-c++
%endif
BuildRequires: libstdc++-devel
Requires: clang
@@ -56,10 +56,13 @@ sed -i "s#CLANGXX:-clang++#CLANGXX:-clang++-%{_llvm_sonum}#" clazy.cmake
%define _lto_cflags %{nil}
%if 0%{?suse_version} == 1500
export CXX=g++-13
export CXX=g++-14
%endif
%cmake -DCMAKE_INSTALL_DOCDIR=%{_datadir}/doc/clazy
# The clang-tidy plugin must be built without '-Wl,--no-undefined'
%cmake \
-DCMAKE_INSTALL_DOCDIR=%{_datadir}/doc/clazy \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now"
%cmake_build
@@ -76,6 +79,7 @@ sed -i 's#%{_bindir}/env sh$#/bin/sh#' %{buildroot}%{_bindir}/clazy
%{_bindir}/clazy-standalone
%{_datadir}/metainfo/org.kde.clazy.metainfo.xml
%{_libdir}/ClazyPlugin.so
%{_libdir}/ClazyClangTidy.so
%{_mandir}/man1/clazy.1%{?ext_man}
%changelog