Skip to content

Commit 0154875

Browse files
committed
[SourceKit] Update sourcekitd-test request types
The error message doesn't list all the possible request types that are supported. For now, update the error message.
1 parent 4614adc commit 0154875

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/SourceKit/tools/sourcekitd-test/TestOptions.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,11 @@ bool TestOptions::parseArgs(llvm::ArrayRef<const char *> Args) {
133133
.Default(SourceKitRequest::None);
134134
if (Request == SourceKitRequest::None) {
135135
llvm::errs() << "error: invalid request, expected one of "
136-
<< "version/demangle/mangle/index/complete/cursor/related-idents/syntax-map/structure/"
137-
"format/expand-placeholder/doc-info/sema/interface-gen/interface-gen-open/"
138-
"find-usr/find-interface/open/edit/print-annotations/extract-comment/"
139-
"module-groups\n";
136+
<< "version/demangle/mangle/index/complete/complete.open/complete.cursor/"
137+
"complete.update/complete.cache.ondisk/complete.cache.setpopularapi/"
138+
"cursor/related-idents/syntax-map/structure/format/expand-placeholder/"
139+
"doc-info/sema/interface-gen/interface-gen-openfind-usr/find-interface/"
140+
"open/edit/print-annotations/print-diags/extract-comment/module-groups\n";
140141
return true;
141142
}
142143
break;

0 commit comments

Comments
 (0)