From 267240ecf71b71c0d4234ee32b745e8789f39089 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 14 May 2018 11:17:30 +0200 Subject: Adapt compilerplugins to recent Clang trunk change Change-Id: I3013799433e7b82d6b869e9a3cf071495a12d5ae Reviewed-on: https://gerrit.libreoffice.org/54304 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/includeform.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'compilerplugins/clang') 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 +#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; -- cgit v1.2.3