forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request swiftlang#61804 from tshortli/break-cycle-frontend…
…-ide IDE: Move compiler invocation utils to break CMake cycle with Frontend
- Loading branch information
Showing
11 changed files
with
450 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
//===--- CompilerInvocation.h ---------------------------------------------===// | ||
// | ||
// This source file is part of the Swift.org open source project | ||
// | ||
// Copyright (c) 2022 Apple Inc. and the Swift project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See https://swift.org/LICENSE.txt for license information | ||
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef SWIFT_IDE_COMPILERINVOCATION_H | ||
#define SWIFT_IDE_COMPILERINVOCATION_H | ||
|
||
#include "swift/Frontend/Frontend.h" | ||
|
||
namespace swift { | ||
|
||
class CompilerInvocation; | ||
|
||
namespace ide { | ||
|
||
bool initCompilerInvocation( | ||
CompilerInvocation &Invocation, ArrayRef<const char *> OrigArgs, | ||
FrontendOptions::ActionType Action, DiagnosticEngine &Diags, | ||
StringRef UnresolvedPrimaryFile, | ||
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FileSystem, | ||
const std::string &swiftExecutablePath, | ||
const std::string &runtimeResourcePath, | ||
const std::string &diagnosticDocumentationPath, time_t sessionTimestamp, | ||
std::string &Error); | ||
|
||
bool initInvocationByClangArguments(ArrayRef<const char *> ArgList, | ||
CompilerInvocation &Invok, | ||
std::string &Error); | ||
|
||
} // namespace ide | ||
} // namespace swift | ||
|
||
#endif // SWIFT_IDE_COMPILERINVOCATION_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.