[CodeCompletion] Remove ... and & from function filter names

The filter name of a function should match the spelling of the function
name according to the language except that we don't insert _ for unnamed
parameters because underscores are legal inside identifiers and we don't
want to introduce spurious matches (also, we keep the () on a
parameterless function for disambiguation).

rdar://problem/26118915
This commit is contained in:
Ben Langmuir
2016-05-10 10:11:43 -07:00
parent b4dbdc49c2
commit b4ce34aba9
4 changed files with 10 additions and 4 deletions

View File

@@ -1180,6 +1180,8 @@ void CompletionBuilder::getFilterName(CodeCompletionString *str,
case ChunkKind::DeclAttrParamEqual:
case ChunkKind::Comma:
case ChunkKind::Whitespace:
case ChunkKind::Ellipsis:
case ChunkKind::Ampersand:
continue;
case ChunkKind::CallParameterColon:
// Since we don't add the type, also don't add the space after ':'.