public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Stellard <tstellar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/clazy] epel8: Rebuild for clang 18
Date: Fri, 14 Aug 2026 07:35:57 GMT [thread overview]
Message-ID: <178669295726.1.4382632703724088639.rpms-clazy-c3897043690c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/clazy
Branch : epel8
Commit : c3897043690c21960666418d4e4ba5b8bc25bba2
Author : Tom Stellard <tstellar@redhat.com>
Date : 2024-03-02T05:40:03+00:00
Stats : +47/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/clazy/c/c3897043690c21960666418d4e4ba5b8bc25bba2?branch=epel8
Log:
Rebuild for clang 18
---
diff --git a/0001-s-isPure-isPureVirtual.patch b/0001-s-isPure-isPureVirtual.patch
new file mode 100644
index 0000000..b6ad67a
--- /dev/null
+++ b/0001-s-isPure-isPureVirtual.patch
@@ -0,0 +1,41 @@
+From f087164fed866c04f28462d628cfae6541b829c8 Mon Sep 17 00:00:00 2001
+From: Tom Stellard <tstellar@redhat.com>
+Date: Sat, 2 Mar 2024 05:17:27 +0000
+Subject: [PATCH] s/isPure/isPureVirtual
+
+This API was changed upstream in llvm by commit
+e90e43fb9cd1d305f7196cd526aa503374e0f616.
+---
+ src/FunctionUtils.h | 2 +-
+ src/checks/level2/virtual-call-ctor.cpp | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/FunctionUtils.h b/src/FunctionUtils.h
+index 7115327a..4c633928 100644
+--- a/src/FunctionUtils.h
++++ b/src/FunctionUtils.h
+@@ -73,7 +73,7 @@ inline bool classImplementsMethod(const clang::CXXRecordDecl *record, const clan
+
+ llvm::StringRef methodName = clazy::name(method);
+ for (auto *m : record->methods()) {
+- if (!m->isPure() && clazy::name(m) == methodName && parametersMatch(m, method)) {
++ if (!m->isPureVirtual() && clazy::name(m) == methodName && parametersMatch(m, method)) {
+ return true;
+ }
+ }
+diff --git a/src/checks/level2/virtual-call-ctor.cpp b/src/checks/level2/virtual-call-ctor.cpp
+index 1f1cb28b..5704b49c 100644
+--- a/src/checks/level2/virtual-call-ctor.cpp
++++ b/src/checks/level2/virtual-call-ctor.cpp
+@@ -107,7 +107,7 @@ SourceLocation VirtualCallCtor::containsVirtualCall(clang::CXXRecordDecl *classD
+ }
+
+ if (memberDecl->getParent() == classDecl) {
+- if (memberDecl->isPure()) {
++ if (memberDecl->isPureVirtual()) {
+ return clazy::getLocStart(callExpr);
+ }
+ if (containsVirtualCall(classDecl, memberDecl->getBody(), processedStmts).isValid()) {
+--
+2.41.0
+
diff --git a/clazy.spec b/clazy.spec
index 4e9b2d7..a3076cc 100644
--- a/clazy.spec
+++ b/clazy.spec
@@ -6,7 +6,7 @@
Name: clazy
Summary: Qt oriented code checker based on clang framework
Version: 1.11%{?commitdate:^git%{commitdate}.%{shortcommit}}
-Release: 4%{?dist}
+Release: 5%{?dist}
License: LGPL-2.0-or-later
URL: https://invent.kde.org/sdk/%{name}
@@ -17,6 +17,8 @@ Source0: https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%
%endif
Patch0: clazy-no-rpath.patch
+# Fix for clang-18
+Patch1: 0001-s-isPure-isPureVirtual.patch
BuildRequires: cmake
BuildRequires: gcc-c++
@@ -57,6 +59,9 @@ refactoring.
%changelog
+* Sat Mar 02 2024 Tom Stellard <tstellar@redhat.com> - 1.11^git20240128.69fedb4-5
+- Rebuild for clang 18
+
* Mon Jan 29 2024 Jan Grulich <jgrulich@redhat.com> - 1.11^git20230618.69fedb4-4
- Update to latest git snapshot
reply other threads:[~2026-08-14 7:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178669295726.1.4382632703724088639.rpms-clazy-c3897043690c@fedoraproject.org \
--to=tstellar@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox