summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/includeform.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/includeform.cxx')
-rw-r--r--compilerplugins/clang/includeform.cxx19
1 files changed, 13 insertions, 6 deletions
diff --git a/compilerplugins/clang/includeform.cxx b/compilerplugins/clang/includeform.cxx
index 9d6587506a85..173f9e28841b 100644
--- a/compilerplugins/clang/includeform.cxx
+++ b/compilerplugins/clang/includeform.cxx
@@ -28,17 +28,24 @@ private:
void InclusionDirective(
SourceLocation HashLoc, Token const & IncludeTok, StringRef,
- bool IsAngled, CharSourceRange FilenameRange, FileEntry const * File,
- StringRef SearchPath, StringRef, clang::Module const *
-#if CLANG_VERSION >= 70000
- , SrcMgr::CharacteristicKind
+ bool IsAngled, CharSourceRange FilenameRange,
+#if CLANG_VERSION >= 160000
+ OptionalFileEntryRef File,
+#elif CLANG_VERSION >= 150000
+ Optional<FileEntryRef> File,
+#else
+ FileEntry const * File,
#endif
- ) override
+ StringRef SearchPath, StringRef, clang::Module const *,
+#if CLANG_VERSION >= 190000
+ bool,
+#endif
+ SrcMgr::CharacteristicKind) override
{
if (ignoreLocation(HashLoc)) {
return;
}
- if (File == nullptr) { // in case of "fatal error: '...' file not found"
+ if (!File) { // in case of "fatal error: '...' file not found"
return;
}
if (IncludeTok.getIdentifierInfo()->getPPKeywordID() != tok::pp_include)