aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Camachat <eric@camachat.org>2023-04-18 15:35:13 +0000
committerAdriaan de Groot <adridg@FreeBSD.org>2023-04-18 21:51:41 +0000
commit2f310336b63295c34d536b823cc24bbbb3792ef0 (patch)
tree430737d127508ae1eca15f824859475a676c53f4
parentb10f16b4f4cbaaae6844e468036020b98fc0830b (diff)
downloadports-2f310336b63295c34d536b823cc24bbbb3792ef0.tar.gz
ports-2f310336b63295c34d536b823cc24bbbb3792ef0.zip
devel/qt6-tools: fix build with clang 16
PR: 270450
-rw-r--r--devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.cpp13
-rw-r--r--devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.h13
2 files changed, 26 insertions, 0 deletions
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 000000000000..12a42edec3f4
--- /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<clang::FileEntryRef> 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 000000000000..28caab3d3bda
--- /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<clang::FileEntryRef> file,
+ #else
+ const clang::FileEntry *file,