1
0
forked from pool/CastXML

Accepting request 1168448 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/1168448
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/CastXML?expand=0&rev=17
This commit is contained in:
Dominique Leuenberger 2024-04-17 12:46:00 +00:00 committed by Git OBS Bridge
commit c70437c2b6
5 changed files with 13 additions and 63 deletions

View File

@ -1,56 +0,0 @@
From 5e0db6780b264baba5639ec11c5823787661c318 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Mon, 5 Feb 2024 11:31:17 -0500
Subject: [PATCH] Port to LLVM/Clang Git release/18.x as of 2024-02-05
(900e7cbfdee)
`isPure` was renamed to `isPureVirtual`.
---
src/Output.cxx | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/Output.cxx b/src/Output.cxx
index 6086c04..5d15caa 100644
--- a/src/Output.cxx
+++ b/src/Output.cxx
@@ -93,6 +93,10 @@ using OptionalFileEntryRef = clang::FileEntry const*;
#include <string>
#include <vector>
+#if LLVM_VERSION_MAJOR < 18
+# define isPureVirtual isPure
+#endif
+
class ASTVisitorBase
{
protected:
@@ -2282,7 +2286,7 @@ void ASTVisitor::OutputCXXMethodDecl(clang::CXXMethodDecl const* d,
if (d->isVirtual()) {
flags |= FH_Virtual;
}
- if (d->isPure()) {
+ if (d->isPureVirtual()) {
flags |= FH_Pure;
}
if (d->isOverloadedOperator()) {
@@ -2312,7 +2316,7 @@ void ASTVisitor::OutputCXXConversionDecl(clang::CXXConversionDecl const* d,
if (d->isVirtual()) {
flags |= FH_Virtual;
}
- if (d->isPure()) {
+ if (d->isPureVirtual()) {
flags |= FH_Pure;
}
this->OutputFunctionHelper(d, dn, "Converter", flags);
@@ -2348,7 +2352,7 @@ void ASTVisitor::OutputCXXDestructorDecl(clang::CXXDestructorDecl const* d,
if (d->isVirtual()) {
flags |= FH_Virtual;
}
- if (d->isPure()) {
+ if (d->isPureVirtual()) {
flags |= FH_Pure;
}
this->OutputFunctionHelper(d, dn, "Destructor", flags,
--
2.44.0

View File

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

3
CastXML-0.6.5.tar.gz Normal file
View File

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

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Apr 14 08:33:03 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 0.6.5:
* LLVM 18 compatibility.
- Drop upstream incorporated patch:
0001-Port-to-LLVM-Clang-Git-release-18.x-as-of-2024-02-05.patch
-------------------------------------------------------------------
Thu Mar 21 14:21:26 UTC 2024 - Christophe Marin <christophe@krop.fr>

View File

@ -17,15 +17,13 @@
Name: CastXML
Version: 0.6.4
Version: 0.6.5
Release: 0
Summary: C-family Abstract Syntax Tree XML Output
License: Apache-2.0
URL: https://github.com/CastXML/CastXML
Source0: https://github.com/CastXML/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM
Patch0: 0001-Port-to-LLVM-Clang-Git-release-18.x-as-of-2024-02-05.patch
BuildRequires: clang-devel
BuildRequires: cmake
BuildRequires: fdupes