Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/qt6-tools: fix build with clang 16
PR: 270450
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, |
13 changes: 13 additions & 0 deletions
13
devel/qt6-tools/files/patch-src_linguist_lupdate_lupdatepreprocessoraction.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, |