summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-05-14 11:17:30 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-05-14 13:54:27 +0200
commit267240ecf71b71c0d4234ee32b745e8789f39089 (patch)
tree3d3ea1e4556921109a9bfbebc59134c2eaab3ca3 /compilerplugins
parentd6d5c1c855a0ce57ab96747b950241065f849b83 (diff)
Adapt compilerplugins to recent Clang trunk change
Change-Id: I3013799433e7b82d6b869e9a3cf071495a12d5ae Reviewed-on: https://gerrit.libreoffice.org/54304 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/includeform.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/compilerplugins/clang/includeform.cxx b/compilerplugins/clang/includeform.cxx
index c26a2aea76d6..fe7bad18918f 100644
--- a/compilerplugins/clang/includeform.cxx
+++ b/compilerplugins/clang/includeform.cxx
@@ -9,6 +9,8 @@
#include <memory>
+#include "config_clang.h"
+
#include "compat.hxx"
#include "plugin.hxx"
@@ -26,7 +28,11 @@ private:
void InclusionDirective(
SourceLocation HashLoc, Token const & IncludeTok, StringRef,
bool IsAngled, CharSourceRange FilenameRange, FileEntry const * File,
- StringRef SearchPath, StringRef, clang::Module const *) override
+ StringRef SearchPath, StringRef, clang::Module const *
+#if CLANG_VERSION >= 70000
+ , SrcMgr::CharacteristicKind
+#endif
+ ) override
{
if (ignoreLocation(HashLoc)) {
return;