Skip to content

Commit 42cbd82

Browse files
committed
[CodeCompletion] Add '-warn-concurrency' to swift-ide-test
(cherry picked from commit 7a3f7c6)
1 parent b0e72df commit 42cbd82

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",
@@ -3853,6 +3857,9 @@ int main(int argc, char *argv[]) {
38533857
if (options::EnableExperimentalConcurrency) {
38543858
InitInvok.getLangOptions().EnableExperimentalConcurrency = true;
38553859
}
3860+
if (options::WarnConcurrency) {
3861+
InitInvok.getLangOptions().WarnConcurrency = true;
3862+
}
38563863
if (options::DisableImplicitConcurrencyImport) {
38573864
InitInvok.getLangOptions().DisableImplicitConcurrencyModuleImport = true;
38583865
}

0 commit comments

Comments
 (0)