From b5023fa9abea248831271df99df0810351bd8c21 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 19 Dec 2022 13:16:29 +0100 Subject: Adapt to clang::PPCallbacks::InclusionDirective change in Clang 16 trunk "[clang] Convert OptionalFileEntryRefDegradesToFileEntryPtr to std::optional" Change-Id: I60bf4a770d6037edcfe0129591fd46941c8903db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144471 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/includeform.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/includeform.cxx b/compilerplugins/clang/includeform.cxx index 7b2c0feb07ea..e640e14b6859 100644 --- a/compilerplugins/clang/includeform.cxx +++ b/compilerplugins/clang/includeform.cxx @@ -29,7 +29,9 @@ private: void InclusionDirective( SourceLocation HashLoc, Token const & IncludeTok, StringRef, bool IsAngled, CharSourceRange FilenameRange, -#if CLANG_VERSION >= 150000 +#if CLANG_VERSION >= 160000 + std::optional File, +#elif CLANG_VERSION >= 150000 Optional File, #else FileEntry const * File, -- cgit