public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/clazy] epel8: Rebuild for clang 18
@ 2026-08-14  7:35 Tom Stellard
  0 siblings, 0 replies; only message in thread
From: Tom Stellard @ 2026-08-14  7:35 UTC (permalink / raw)
  To: git-commits

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-14  7:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-14  7:35 [rpms/clazy] epel8: Rebuild for clang 18 Tom Stellard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox