From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- dev-util/clazy/files/clazy-1.10-gcc-build.patch | 44 ------------------------- 1 file changed, 44 deletions(-) delete mode 100644 dev-util/clazy/files/clazy-1.10-gcc-build.patch (limited to 'dev-util/clazy/files/clazy-1.10-gcc-build.patch') diff --git a/dev-util/clazy/files/clazy-1.10-gcc-build.patch b/dev-util/clazy/files/clazy-1.10-gcc-build.patch deleted file mode 100644 index 647c254b644d..000000000000 --- a/dev-util/clazy/files/clazy-1.10-gcc-build.patch +++ /dev/null @@ -1,44 +0,0 @@ -https://invent.kde.org/sdk/clazy/-/commit/b74c8729b7b71528c1528579435cda7fdb5d31b4 - -From: Sergio Martins -Date: Thu, 2 Dec 2021 11:05:51 +0000 -Subject: [PATCH] Fix build with some newer gcc complaining about deleted Lexer - ---- a/src/SourceCompatibilityHelpers.h -+++ b/src/SourceCompatibilityHelpers.h -@@ -117,17 +117,13 @@ inline auto getBuffer(const clang::SourceManager &sm, clang::FileID id, bool *in - } - - #if LLVM_VERSION_MAJOR >= 12 --inline clang::Lexer getLexer(clang::FileID id, llvm::Optional inputFile, -- const clang::SourceManager &sm, const clang::LangOptions &lo) --{ -- return clang::Lexer(id, inputFile.getValue(), sm, lo); --} -+ -+#define GET_LEXER(id, inputFile, sm, lo) \ -+clang::Lexer(id, inputFile.getValue(), sm, lo) -+ - #else --inline clang::Lexer getLexer(clang::FileID id, const llvm::MemoryBuffer *inputFile, -- const clang::SourceManager &sm, const clang::LangOptions &lo) --{ -- return clang::Lexer(id, inputFile, sm, lo); --} -+#define GET_LEXER(id, inputFile, sm, lo) \ -+clang::Lexer(id, inputFile.getValue(), sm, lo) - #endif - - inline bool isFinal(const clang::CXXRecordDecl *record) ---- a/src/SuppressionManager.cpp -+++ b/src/SuppressionManager.cpp -@@ -91,7 +91,7 @@ void SuppressionManager::parseFile(FileID id, const SourceManager &sm, const cla - return; - } - -- auto lexer = clazy::getLexer(id, buffer, sm, lo); -+ auto lexer = GET_LEXER(id, buffer, sm, lo); - lexer.SetCommentRetentionState(true); - - Token token; -GitLab -- cgit v1.2.3