Accepting request 1160379 from home:krop:branches:devel:libraries:c_c++
- Add upstream change: * 0001-Port-to-LLVM-Clang-Git-release-18.x-as-of-2024-02-05.patch OBS-URL: https://build.opensuse.org/request/show/1160379 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/CastXML?expand=0&rev=31
This commit is contained in:
parent
2d4d9174e6
commit
dd80a71d81
@ -0,0 +1,56 @@
|
|||||||
|
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
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 21 14:21:26 UTC 2024 - Christophe Marin <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Add upstream change:
|
||||||
|
* 0001-Port-to-LLVM-Clang-Git-release-18.x-as-of-2024-02-05.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 22 19:41:46 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
Mon Jan 22 19:41:46 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
@ -24,6 +24,8 @@ License: Apache-2.0
|
|||||||
URL: https://github.com/CastXML/CastXML
|
URL: https://github.com/CastXML/CastXML
|
||||||
Source0: https://github.com/CastXML/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/CastXML/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Source1: %{name}-rpmlintrc
|
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: clang-devel
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
Loading…
Reference in New Issue
Block a user