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 75c8a76efa
commit 32be4fe834

View File

@@ -180,7 +180,9 @@ public:
StringRef FileName, StringRef FileName,
bool IsAngled, bool IsAngled,
CharSourceRange FileNameRange, CharSourceRange FileNameRange,
#if CLANG_VERSION_MAJOR >= 15 #if CLANG_VERSION_MAJOR >= 16
OptionalFileEntryRef File,
#elif CLANG_VERSION_MAJOR >= 15
Optional<FileEntryRef> File, Optional<FileEntryRef> File,
#else #else
const FileEntry *File, const FileEntry *File,
@@ -2088,7 +2090,9 @@ void PreprocessorHook::InclusionDirective(SourceLocation HashLoc,
StringRef FileName, StringRef FileName,
bool IsAngled, bool IsAngled,
CharSourceRange FileNameRange, CharSourceRange FileNameRange,
#if CLANG_VERSION_MAJOR >= 15 #if CLANG_VERSION_MAJOR >= 16
OptionalFileEntryRef File,
#elif CLANG_VERSION_MAJOR >= 15
Optional<FileEntryRef> File, Optional<FileEntryRef> File,
#else #else
const FileEntry *File, const FileEntry *File,