diff --git a/build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp b/build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp index 4d5bff5a233f..904897df6bd9 100644 --- a/build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp +++ b/build/clang-plugin/mozsearch-plugin/MozsearchIndexer.cpp @@ -180,7 +180,9 @@ public: StringRef FileName, bool IsAngled, CharSourceRange FileNameRange, -#if CLANG_VERSION_MAJOR >= 15 +#if CLANG_VERSION_MAJOR >= 16 + OptionalFileEntryRef File, +#elif CLANG_VERSION_MAJOR >= 15 Optional File, #else const FileEntry *File, @@ -2088,7 +2090,9 @@ void PreprocessorHook::InclusionDirective(SourceLocation HashLoc, StringRef FileName, bool IsAngled, CharSourceRange FileNameRange, -#if CLANG_VERSION_MAJOR >= 15 +#if CLANG_VERSION_MAJOR >= 16 + OptionalFileEntryRef File, +#elif CLANG_VERSION_MAJOR >= 15 Optional File, #else const FileEntry *File,