Files
haikuports/dev-util/clazy/patches/clazy-1.15.patchset
2025-06-17 15:32:43 +00:00

46 lines
1.8 KiB
Plaintext

From d17ea14fe8503ef53cd8a965128a0f831fe09237 Mon Sep 17 00:00:00 2001
From: Schrijvers Luc <begasus@gmail.com>
Date: Sat, 6 Jul 2024 11:45:30 +0200
Subject: Silense deprecated warnings
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d3bf9ad..6453a69 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -65,7 +65,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} -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} -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wno-deprecated-declarations -Wwrite-strings -fno-exceptions -fno-rtti")
endif()
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-flat_namespace -Wl,-undefined -Wl,suppress")
--
2.48.1
From 98215646d8e2c6b2326a8543da4ba4c954bf6775 Mon Sep 17 00:00:00 2001
From: Luc Schrijvers <begasus@gmail.com>
Date: Mon, 16 Jun 2025 10:34:25 +0200
Subject: Add missing header
Fixes: error: 'Lexer' is not a member of 'clang'
diff --git a/src/SuppressionManager.cpp b/src/SuppressionManager.cpp
index 112025e..b94f1aa 100644
--- a/src/SuppressionManager.cpp
+++ b/src/SuppressionManager.cpp
@@ -11,6 +11,7 @@
#include <clang/Basic/SourceLocation.h>
#include <clang/Basic/SourceManager.h>
#include <clang/Basic/TokenKinds.h>
+#include <clang/Lex/Lexer.h>
#include <clang/Lex/Token.h>
#include <llvm/Support/MemoryBuffer.h>
#include <llvm/Support/raw_ostream.h>
--
2.48.1