summaryrefslogtreecommitdiff
path: root/compilerplugins/clang
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang')
-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;