From 2b93f4de13e67e91fb86376dc2633051444e85f0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 11 Feb 2024 15:27:06 +0100 Subject: [PATCH] Adapt to modified clang::PPCallbacks::InclusionDirective ...in LLVM 19 trunk "[clang][lex] Always pass suggested module to `InclusionDirective()` callback (#81061)" Change-Id: I85a4f60fb3e514d3372118da454402dff6ad45e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163229 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/includeform.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compilerplugins/clang/includeform.cxx b/compilerplugins/clang/includeform.cxx index da955c20d3bb..173f9e28841b 100644 --- a/compilerplugins/clang/includeform.cxx +++ b/compilerplugins/clang/includeform.cxx @@ -36,7 +36,11 @@ private: #else FileEntry const * File, #endif - StringRef SearchPath, StringRef, clang::Module const *, SrcMgr::CharacteristicKind) override + StringRef SearchPath, StringRef, clang::Module const *, +#if CLANG_VERSION >= 190000 + bool, +#endif + SrcMgr::CharacteristicKind) override { if (ignoreLocation(HashLoc)) { return;