From 88e382f8a3d107383764310624ac61f237fdfa06 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sun, 5 May 2024 17:40:09 -0700 Subject: [PATCH] Adapt llvmorg-19-init-1720-gda95d926f6fc: InclusionDirective --- src/indexer.cc | 5 ++++- src/sema_manager.cc | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/indexer.cc b/src/indexer.cc index f550f22a..8f84bc02 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -1126,7 +1126,10 @@ public: const FileEntry *file, #endif StringRef searchPath, StringRef relativePath, - const Module *imported, + const clang::Module *suggestedModule, +#if LLVM_VERSION_MAJOR >= 19 // llvmorg-19-init-1720-gda95d926f6fc + bool moduleImported, +#endif SrcMgr::CharacteristicKind fileType) override { #if LLVM_VERSION_MAJOR >= 15 // llvmorg-15-init-7692-gd79ad2f1dbc2 const FileEntry *file = fileRef ? &fileRef->getFileEntry() : nullptr; diff --git a/src/sema_manager.cc b/src/sema_manager.cc index 5b09cf92..0a7f6eb8 100644 --- a/src/sema_manager.cc +++ b/src/sema_manager.cc @@ -187,7 +187,10 @@ public: const FileEntry *file, #endif StringRef searchPath, StringRef relativePath, - const clang::Module *imported, + const clang::Module *suggestedModule, +#if LLVM_VERSION_MAJOR >= 19 // llvmorg-19-init-1720-gda95d926f6fc + bool moduleImported, +#endif SrcMgr::CharacteristicKind fileKind) override { (void)sm; #if LLVM_VERSION_MAJOR >= 15 // llvmorg-15-init-7692-gd79ad2f1dbc2