Skip to content

Commit 7a3f7c6

Browse files
committed
[CodeCompletion] Add '-warn-concurrency' to swift-ide-test
1 parent 1bb2905 commit 7a3f7c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/swift-ide-test/swift-ide-test.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,10 @@ static llvm::cl::opt<bool>
757757
EnableExperimentalConcurrency("enable-experimental-concurrency",
758758
llvm::cl::desc("Enable experimental concurrency model"),
759759
llvm::cl::init(false));
760+
static llvm::cl::opt<bool>
761+
WarnConcurrency("warn-concurrency",
762+
llvm::cl::desc("Additional concurrency warnings"),
763+
llvm::cl::init(false));
760764

761765
static llvm::cl::opt<bool>
762766
DisableImplicitConcurrencyImport("disable-implicit-concurrency-module-import",
@@ -3865,6 +3869,9 @@ int main(int argc, char *argv[]) {
38653869
if (options::EnableExperimentalConcurrency) {
38663870
InitInvok.getLangOptions().EnableExperimentalConcurrency = true;
38673871
}
3872+
if (options::WarnConcurrency) {
3873+
InitInvok.getLangOptions().WarnConcurrency = true;
3874+
}
38683875
if (options::DisableImplicitConcurrencyImport) {
38693876
InitInvok.getLangOptions().DisableImplicitConcurrencyModuleImport = true;
38703877
}

0 commit comments

Comments
 (0)