mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
thread a vfs through the completion handler
This commit is contained in:
@@ -13,10 +13,12 @@
|
||||
#ifndef LLVM_SOURCEKIT_LIB_SWIFTLANG_SWIFTASTMANAGER_H
|
||||
#define LLVM_SOURCEKIT_LIB_SWIFTLANG_SWIFTASTMANAGER_H
|
||||
|
||||
#include "SwiftInvocation.h"
|
||||
#include "SourceKit/Core/LLVM.h"
|
||||
#include "SwiftInvocation.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/IntrusiveRefCntPtr.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/VirtualFileSystem.h"
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
@@ -109,11 +111,10 @@ public:
|
||||
std::unique_ptr<llvm::MemoryBuffer> getMemoryBuffer(StringRef Filename,
|
||||
std::string &Error);
|
||||
|
||||
bool initCompilerInvocation(swift::CompilerInvocation &Invocation,
|
||||
ArrayRef<const char *> Args,
|
||||
swift::DiagnosticEngine &Diags,
|
||||
StringRef PrimaryFile,
|
||||
std::string &Error);
|
||||
bool initCompilerInvocation(
|
||||
swift::CompilerInvocation &Invocation, ArrayRef<const char *> Args,
|
||||
swift::DiagnosticEngine &Diags, StringRef PrimaryFile, std::string &Error,
|
||||
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FileSystem = nullptr);
|
||||
|
||||
bool initCompilerInvocation(swift::CompilerInvocation &CompInvok,
|
||||
ArrayRef<const char *> OrigArgs,
|
||||
|
||||
Reference in New Issue
Block a user