From 2f310336b63295c34d536b823cc24bbbb3792ef0 Mon Sep 17 00:00:00 2001 From: Eric Camachat Date: Tue, 18 Apr 2023 17:35:13 +0200 Subject: [PATCH] devel/qt6-tools: fix build with clang 16 PR: 270450 --- ...c_linguist_lupdate_lupdatepreprocessoraction.cpp | 13 +++++++++++++ ...src_linguist_lupdate_lupdatepreprocessoraction.h | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.cpp create mode 100644 devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.h diff --git a/devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.cpp b/devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.cpp new file mode 100644 index 0000000000000..12a42edec3f48 --- /dev/null +++ b/devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.cpp @@ -0,0 +1,13 @@ +--- src/linguist/lupdate/lupdatepreprocessoraction.cpp.orig 2022-12-12 17:11:50 UTC ++++ src/linguist/lupdate/lupdatepreprocessoraction.cpp +@@ -157,7 +157,9 @@ void LupdatePPCallbacks::SourceRangeSkipped(clang::Sou + void LupdatePPCallbacks::InclusionDirective(clang::SourceLocation /*hashLoc*/, + const clang::Token & /*includeTok*/, clang::StringRef /*fileName*/, bool /*isAngled*/, + clang::CharSourceRange /*filenameRange*/, +-#if (LUPDATE_CLANG_VERSION >= LUPDATE_CLANG_VERSION_CHECK(15,0,0)) ++#if (LUPDATE_CLANG_VERSION >= LUPDATE_CLANG_VERSION_CHECK(16,0,0)) ++ clang::OptionalFileEntryRef file, ++#elif (LUPDATE_CLANG_VERSION >= LUPDATE_CLANG_VERSION_CHECK(15,0,0)) + const clang::Optional file, + #else + const clang::FileEntry *file, diff --git a/devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.h b/devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.h new file mode 100644 index 0000000000000..28caab3d3bda3 --- /dev/null +++ b/devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.h @@ -0,0 +1,13 @@ +--- src/linguist/lupdate/lupdatepreprocessoraction.h.orig 2022-12-12 17:11:50 UTC ++++ src/linguist/lupdate/lupdatepreprocessoraction.h +@@ -52,7 +52,9 @@ class LupdatePPCallbacks : public clang::PPCallbacks ( + void InclusionDirective(clang::SourceLocation /*hashLoc*/, const clang::Token &/*includeTok*/, + clang::StringRef /*fileName*/, bool /*isAngled*/, + clang::CharSourceRange /*filenameRange*/, +-#if (LUPDATE_CLANG_VERSION >= LUPDATE_CLANG_VERSION_CHECK(15,0,0)) ++#if (LUPDATE_CLANG_VERSION >= LUPDATE_CLANG_VERSION_CHECK(16,0,0)) ++ clang::OptionalFileEntryRef file, ++#elif (LUPDATE_CLANG_VERSION >= LUPDATE_CLANG_VERSION_CHECK(15,0,0)) + const clang::Optional file, + #else + const clang::FileEntry *file,