* [PR PATCH] clazy: update to 1.7
@ 2020-07-05 9:40 mvf
2020-07-06 12:28 ` [PR PATCH] [Merged]: " Johnnynator
0 siblings, 1 reply; 2+ messages in thread
From: mvf @ 2020-07-05 9:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 298 bytes --]
There is a new pull request by mvf against master on the void-packages repository
https://github.com/mvf/void-packages pr/clazy
https://github.com/void-linux/void-packages/pull/23394
clazy: update to 1.7
A patch file from https://github.com/void-linux/void-packages/pull/23394.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pr/clazy-23394.patch --]
[-- Type: text/x-diff, Size: 4781 bytes --]
From 0215e7c111978e9f1b1e9fec238ebc70cfdc6378 Mon Sep 17 00:00:00 2001
From: Matthias von Faber <mvf@gmx.eu>
Date: Sun, 5 Jul 2020 09:39:16 +0200
Subject: [PATCH] clazy: update to 1.7
---
srcpkgs/clazy/patches/llvm10.patch | 72 ------------------------------
srcpkgs/clazy/template | 6 +--
2 files changed, 3 insertions(+), 75 deletions(-)
delete mode 100644 srcpkgs/clazy/patches/llvm10.patch
diff --git a/srcpkgs/clazy/patches/llvm10.patch b/srcpkgs/clazy/patches/llvm10.patch
deleted file mode 100644
index 289deaabbe4..00000000000
--- a/srcpkgs/clazy/patches/llvm10.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-From df41bd29433937111edca3654a7beb11ec765029 Mon Sep 17 00:00:00 2001
-From: Johannes Ziegenbalg <Johannes.Ziegenbalg@tu-dresden.de>
-Date: Fri, 27 Mar 2020 14:18:32 +0100
-Subject: [PATCH] Fix build issues using llvm 10.0.0
-
----
- CMakeLists.txt | 2 +-
- src/ClazyStandaloneMain.cpp | 10 ++++++++++
- src/checks/level0/qstring-ref.cpp | 4 ++++
- 3 files changed, 15 insertions(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index f1463cfe..a30813f8 100644
---- CMakeLists.txt
-+++ CMakeLists.txt
-@@ -53,7 +53,7 @@ if(MSVC)
- # disable trigger-happy warnings from Clang/LLVM headers
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267 /wd4244 /wd4291 /wd4800 /wd4141 /wd4146 /wd4251")
- elseif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-exceptions -fno-rtti")
-+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-exceptions -fno-rtti")
- endif()
-
- set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-flat_namespace -Wl,-undefined -Wl,suppress")
-diff --git a/src/ClazyStandaloneMain.cpp b/src/ClazyStandaloneMain.cpp
-index aada1895..6baae329 100644
---- src/ClazyStandaloneMain.cpp
-+++ src/ClazyStandaloneMain.cpp
-@@ -93,7 +93,11 @@ class ClazyToolActionFactory
- {
- }
-
-+#if LLVM_VERSION_MAJOR >= 10
-+ std::unique_ptr<FrontendAction> create() override
-+#else
- FrontendAction *create() override
-+#endif
- {
- ClazyContext::ClazyOptions options = ClazyContext::ClazyOption_None;
-
-@@ -116,9 +120,15 @@ class ClazyToolActionFactory
- options |= ClazyContext::ClazyOption_IgnoreIncludedFiles;
-
- // TODO: We need to agregate the fixes with previous run
-+#if LLVM_VERSION_MAJOR >= 10
-+ return std::make_unique<ClazyStandaloneASTAction>(s_checks.getValue(), s_headerFilter.getValue(),
-+ s_ignoreDirs.getValue(), s_exportFixes.getValue(),
-+ m_paths, options);
-+#else
- return new ClazyStandaloneASTAction(s_checks.getValue(), s_headerFilter.getValue(),
- s_ignoreDirs.getValue(), s_exportFixes.getValue(),
- m_paths, options);
-+#endif
- }
- std::vector<std::string> m_paths;
- };
-diff --git a/src/checks/level0/qstring-ref.cpp b/src/checks/level0/qstring-ref.cpp
-index d1d8a4ea..ec9e8901 100644
---- src/checks/level0/qstring-ref.cpp
-+++ src/checks/level0/qstring-ref.cpp
-@@ -117,7 +117,11 @@ static bool containsChild(Stmt *s, Stmt *target)
- return true;
-
- if (auto mte = dyn_cast<MaterializeTemporaryExpr>(s)) {
-+#if LLVM_VERSION_MAJOR >= 10
-+ return containsChild(mte->getSubExpr(), target);
-+#else
- return containsChild(mte->getTemporary(), target);
-+#endif
- } else if (auto ice = dyn_cast<ImplicitCastExpr>(s)) {
- return containsChild(ice->getSubExpr(), target);
- } else if (auto bte = dyn_cast<CXXBindTemporaryExpr>(s)) {
diff --git a/srcpkgs/clazy/template b/srcpkgs/clazy/template
index d9846d5b41e..a429251688f 100644
--- a/srcpkgs/clazy/template
+++ b/srcpkgs/clazy/template
@@ -1,7 +1,7 @@
# Template file for 'clazy'
pkgname=clazy
-version=1.6
-revision=2
+version=1.7
+revision=1
build_style=cmake
hostmakedepends="python"
makedepends="clang llvm"
@@ -10,5 +10,5 @@ maintainer="John <johnz@posteo.net>"
license="LGPL-2.0-or-later"
homepage="https://cgit.kde.org/clazy.git/about/"
distfiles="${KDE_SITE}/clazy/${version}/src/${pkgname}-${version}.tar.xz"
-checksum=806d1befaddba82316f4ea34f1cba38bcc7545d0981007e3527c1ff1576dd0de
+checksum=754da5815f769dd6b72a040a2430525c93f294eb7769c78271603df9614f1b21
nocross="Clang cannot be installed as makedep"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-06 12:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-05 9:40 [PR PATCH] clazy: update to 1.7 mvf
2020-07-06 12:28 ` [PR PATCH] [Merged]: " Johnnynator
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).