git: 1d3d911ea042 - main - devel/clazy: update to 1.12, latest upstream release (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Mon, 26 Aug 2024 20:54:39 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1d3d911ea042ff78b75896561343b0c00d6e2c28

commit 1d3d911ea042ff78b75896561343b0c00d6e2c28
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2024-08-26 16:19:53 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2024-08-26 16:19:53 +0000

    devel/clazy: update to 1.12, latest upstream release (+)
    
    * v1.12 (June 30th 2024)
        - New Checks:
          - qt-keyword-emit
          - sanitize-inline-keyword
          - no-module-include
        - Support for LLVM 18
        - Fixit for QFileInfo::exists
        - Fixit for qstring-arg
        - Removed Qt4 compatibility
        - 2 years worth of bug fixes
    
    Full changelog: https://invent.kde.org/sdk/clazy/-/blob/master/Changelog
---
 devel/clazy/Makefile                               | 10 ++------
 devel/clazy/distinfo                               | 12 +++-------
 ...anuallevel_unexpected-flag-enumerator-value.cpp | 28 ----------------------
 devel/clazy/pkg-plist                              |  7 ++++--
 4 files changed, 10 insertions(+), 47 deletions(-)

diff --git a/devel/clazy/Makefile b/devel/clazy/Makefile
index 4f6238fc456b..e8bd86bcdd6a 100644
--- a/devel/clazy/Makefile
+++ b/devel/clazy/Makefile
@@ -1,20 +1,14 @@
 PORTNAME=	clazy
-DISTVERSION=	1.11
-PORTREVISION=	2
+DISTVERSION=	1.12
 CATEGORIES=	devel kde
 MASTER_SITES=	KDE/stable/${PORTNAME}/${DISTVERSION}/src/
 
-PATCH_SITES+=	https://invent.kde.org/sdk/clazy/-/commit/
-PATCHFILES+=	20fca52da739ebefa47e35f6b338bb99a0da3cfe.diff:-p1
-PATCHFILES+=	a05ac7eb6f6198c3f478bd7b5b4bfc062a8d63cc.diff:-p1
-PATCHFILES+=	437d09f61a4a75d8a5e5239d20ccd9dc10b459ca.diff:-p1
-
 MAINTAINER=	kde@FreeBSD.org
 COMMENT=	Qt oriented code checker based on clang
 WWW=		https://github.com/KDE/clazy
 
 LICENSE=	LGPL20
-LICENSE_FILE=	${WRKSRC}/COPYING-LGPL2.txt
+LICENSE_FILE=	${WRKSRC}/LICENSES/LGPL-2.0-or-later.txt
 
 USES=		cmake llvm:build,run tar:xz
 
diff --git a/devel/clazy/distinfo b/devel/clazy/distinfo
index fb8d008d14d8..108832398901 100644
--- a/devel/clazy/distinfo
+++ b/devel/clazy/distinfo
@@ -1,9 +1,3 @@
-TIMESTAMP = 1690363170
-SHA256 (clazy-1.11.tar.xz) = 66165df33be8785218720c8947aa9099bae6d06c90b1501953d9f95fdfa0120a
-SIZE (clazy-1.11.tar.xz) = 404088
-SHA256 (20fca52da739ebefa47e35f6b338bb99a0da3cfe.diff) = b6f76075f9ecd9fad0d1bea84c3868de07d128df6d24c99d2de761e5718429f5
-SIZE (20fca52da739ebefa47e35f6b338bb99a0da3cfe.diff) = 11827
-SHA256 (a05ac7eb6f6198c3f478bd7b5b4bfc062a8d63cc.diff) = 4257ed252eee84e1fa2b2b072d6cd3ff01a0a8d82a4b2f224ef783d88e341510
-SIZE (a05ac7eb6f6198c3f478bd7b5b4bfc062a8d63cc.diff) = 3154
-SHA256 (437d09f61a4a75d8a5e5239d20ccd9dc10b459ca.diff) = d68fff99b684e51ad5cc8bc7a1d2caeabc54ec1b5034c0b28caa305e618d1170
-SIZE (437d09f61a4a75d8a5e5239d20ccd9dc10b459ca.diff) = 852
+TIMESTAMP = 1724704390
+SHA256 (clazy-1.12.tar.xz) = 611749141d07ce1e006f8a1253f9b2dbd5b7b44d2d5322d471d62430ec2849ac
+SIZE (clazy-1.12.tar.xz) = 427740
diff --git a/devel/clazy/files/patch-src_checks_manuallevel_unexpected-flag-enumerator-value.cpp b/devel/clazy/files/patch-src_checks_manuallevel_unexpected-flag-enumerator-value.cpp
deleted file mode 100644
index cc4cbd6944e8..000000000000
--- a/devel/clazy/files/patch-src_checks_manuallevel_unexpected-flag-enumerator-value.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
---- src/checks/manuallevel/unexpected-flag-enumerator-value.cpp.orig	2022-01-20 23:18:47 UTC
-+++ src/checks/manuallevel/unexpected-flag-enumerator-value.cpp
-@@ -61,8 +61,13 @@ static bool isIntentionallyNotPowerOf2(EnumConstantDec
-     if (val.isMask() && val.countTrailingOnes() >= MinOnesToQualifyAsMask)
-         return true;
- 
-+#if LLVM_VERSION_MAJOR >= 17
-+    if (val.isMask() && val.popcount() >= MinOnesToQualifyAsMask)
-+        return true;
-+#else
-     if (val.isShiftedMask() && val.countPopulation() >= MinOnesToQualifyAsMask)
-         return true;
-+#endif
- 
-     if (clazy::contains_lower(en->getName(), "mask"))
-         return true;
-@@ -158,7 +163,11 @@ void UnexpectedFlagEnumeratorValue::VisitDecl(clang::D
- 
-     for (EnumConstantDecl* enumerator : enumerators) {
-         const auto &initVal = enumerator->getInitVal();
-+#if LLVM_VERSION_MAJOR >= 17
-+        if (!initVal.isPowerOf2() && !initVal.isZero() && !initVal.isNegative()) {
-+#else
-         if (!initVal.isPowerOf2() && !initVal.isNullValue() && !initVal.isNegative()) {
-+#endif
-             if (isIntentionallyNotPowerOf2(enumerator))
-                 continue;
-             const auto value = enumerator->getInitVal().getLimitedValue();
diff --git a/devel/clazy/pkg-plist b/devel/clazy/pkg-plist
index 571bf08106af..d25d55a1e4b1 100644
--- a/devel/clazy/pkg-plist
+++ b/devel/clazy/pkg-plist
@@ -1,7 +1,7 @@
 bin/clazy
 bin/clazy-standalone
 lib/ClazyPlugin.so
-%%PORTDOCS%%%%DOCSDIR%%/COPYING-LGPL2.txt
+%%PORTDOCS%%%%DOCSDIR%%/LGPL-2.0-or-later.txt
 %%PORTDOCS%%%%DOCSDIR%%/README.md
 %%PORTDOCS%%%%DOCSDIR%%/checks.json
 %%PORTDOCS%%%%DOCSDIR%%/level0/README-connect-by-name.md
@@ -14,6 +14,7 @@ lib/ClazyPlugin.so
 %%PORTDOCS%%%%DOCSDIR%%/level0/README-lambda-unique-connection.md
 %%PORTDOCS%%%%DOCSDIR%%/level0/README-lowercase-qml-type-name.md
 %%PORTDOCS%%%%DOCSDIR%%/level0/README-mutable-container-key.md
+%%PORTDOCS%%%%DOCSDIR%%/level0/README-no-module-include.md
 %%PORTDOCS%%%%DOCSDIR%%/level0/README-overloaded-signal.md
 %%PORTDOCS%%%%DOCSDIR%%/level0/README-qcolor-from-literal.md
 %%PORTDOCS%%%%DOCSDIR%%/level0/README-qdatetime-utc.md
@@ -82,7 +83,7 @@ lib/ClazyPlugin.so
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qrequiredresult-candidates.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qstring-varargs.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qt-keywords.md
-%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qt4-qstring-from-array.md
+%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qt-keyword-emit.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qt6-deprecated-api-fixes.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qt6-fwd-fixes.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qt6-header-fixes.md
@@ -91,11 +92,13 @@ lib/ClazyPlugin.so
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-qvariant-template-instantiation.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-raw-environment-function.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-reserve-candidates.md
+%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-sanitize-inline-keyword.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-signal-with-return-value.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-thread-with-slots.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-tr-non-literal.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-unexpected-flag-enumerator-value.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-unneeded-cast.md
+%%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-unused-result-check.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-use-arrow-operator-instead-of-data.md
 %%PORTDOCS%%%%DOCSDIR%%/manuallevel/README-use-chrono-in-qtimer.md
 %%PORTDOCS%%share/man/man1/clazy.1.gz