mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Remove diagnostics path calculation
The diagnostic group documentation now point to the swift.org URL rather than the toolchain path, so it no longer needs to be passed all the way through sourcekitd. Resolves rdar://151500502.
This commit is contained in:
@@ -157,18 +157,13 @@ bool ide::initCompilerInvocation(
|
||||
StringRef UnresolvedPrimaryFile,
|
||||
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FileSystem,
|
||||
const std::string &swiftExecutablePath,
|
||||
const std::string &runtimeResourcePath,
|
||||
const std::string &diagnosticDocumentationPath, time_t sessionTimestamp,
|
||||
const std::string &runtimeResourcePath, time_t sessionTimestamp,
|
||||
std::string &Error) {
|
||||
SmallVector<const char *, 16> Args;
|
||||
// Make sure to put '-resource-dir' and '-diagnostic-documentation-path' at
|
||||
// the top to allow overriding them with the passed in arguments.
|
||||
// Make sure to put '-resource-dir' at the top to allow overriding them with
|
||||
// the passed in arguments.
|
||||
Args.push_back("-resource-dir");
|
||||
Args.push_back(runtimeResourcePath.c_str());
|
||||
Args.push_back("-Xfrontend");
|
||||
Args.push_back("-diagnostic-documentation-path");
|
||||
Args.push_back("-Xfrontend");
|
||||
Args.push_back(diagnosticDocumentationPath.c_str());
|
||||
Args.append(OrigArgs.begin(), OrigArgs.end());
|
||||
|
||||
SmallString<32> ErrStr;
|
||||
|
||||
Reference in New Issue
Block a user