Bug 1806771 - Adjust searchfox plugin to clang upstream changes. r=asuth

Differential Revision: https://phabricator.services.mozilla.com/D165266
This commit is contained in:
Mike Hommey 2022-12-21 06:48:57 +00:00
parent 92a0c0f3e1
commit 9f8177d6cb

View File

@ -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<FileEntryRef> 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<FileEntryRef> File,
#else
const FileEntry *File,