mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #42511 from zoecarver/add-flag-import-as-computed-property
This commit is contained in:
@@ -766,6 +766,11 @@ static llvm::cl::opt<bool>
|
||||
llvm::cl::desc("Enable C++ interop."),
|
||||
llvm::cl::cat(Category), llvm::cl::init(false));
|
||||
|
||||
static llvm::cl::opt<bool>
|
||||
CxxInteropGettersSettersAsProperties("cxx-interop-getters-setters-as-properties",
|
||||
llvm::cl::desc("Imports getters and setters as computed properties."),
|
||||
llvm::cl::cat(Category), llvm::cl::init(false));
|
||||
|
||||
static llvm::cl::opt<bool>
|
||||
CanonicalizeType("canonicalize-type", llvm::cl::Hidden,
|
||||
llvm::cl::cat(Category), llvm::cl::init(false));
|
||||
@@ -4277,6 +4282,9 @@ int main(int argc, char *argv[]) {
|
||||
if (options::EnableCxxInterop) {
|
||||
InitInvok.getLangOptions().EnableCXXInterop = true;
|
||||
}
|
||||
if (options::CxxInteropGettersSettersAsProperties) {
|
||||
InitInvok.getLangOptions().CxxInteropGettersSettersAsProperties = true;
|
||||
}
|
||||
if (options::EnableExperimentalConcurrency) {
|
||||
InitInvok.getLangOptions().EnableExperimentalConcurrency = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user