diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-12-20 09:08:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-12-20 07:52:20 +0000 |
commit | 8fe55893af1f62219f9ebb1da9527ce8aa0fbd81 (patch) | |
tree | e6101c9afa36c0deaf81ba92b6f5efa9fdda53a1 /compilerplugins | |
parent | 6d5262209a89127880c888c2ef0dc4e0da7f6ea1 (diff) |
Adapt to PPCallbacks::InclusionDirective change in Clang 16 trunk
Attempt to follow the unfolding debate here, it was std::optional
briefly, but then that was reverted with
commit 205c0589f918f95d2f2c586a01bea2716d73d603
Revert "[clang] Convert OptionalFileEntryRefDegradesToFileEntryPtr
to std::optional"
and then a different changed landed with
commit 854c10f8d185286d941307e1033eb492e085c203
Date: Tue Dec 20 00:15:11 2022 +0100
[Clang] Prepare for llvm::Optional becoming std::optional.
Change-Id: I0068960a45695014405437206d8d4565562b0af9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144575
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/includeform.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/includeform.cxx b/compilerplugins/clang/includeform.cxx index 558c9b423345..583cb059bc40 100644 --- a/compilerplugins/clang/includeform.cxx +++ b/compilerplugins/clang/includeform.cxx @@ -31,7 +31,7 @@ private: SourceLocation HashLoc, Token const & IncludeTok, StringRef, bool IsAngled, CharSourceRange FilenameRange, #if CLANG_VERSION >= 160000 - std::optional<FileEntryRef> File, + OptionalFileEntryRef File, #elif CLANG_VERSION >= 150000 Optional<FileEntryRef> File, #else |