Merge pull request #65521 from ahoppen/ahoppen/name-suggestions

[CodeComplete] Offer completions for the `names:` argument of a macro declaration
This commit is contained in:
Alex Hoppen
2023-05-01 20:05:58 -07:00
committed by GitHub
9 changed files with 109 additions and 35 deletions

View File

@@ -449,8 +449,8 @@ public:
CodeCompletionKeywordKind KeyKind = CodeCompletionKeywordKind::None,
CodeCompletionFlair flair = {});
void addDeclAttrParamKeyword(StringRef Name, StringRef Annotation,
bool NeedSpecify);
void addDeclAttrParamKeyword(StringRef Name, ArrayRef<StringRef> Parameters,
StringRef Annotation, bool NeedSpecify);
void addDeclAttrKeyword(StringRef Name, StringRef Annotation);
@@ -586,7 +586,7 @@ public:
void getAttributeDeclCompletions(bool IsInSil, Optional<DeclKind> DK);
void getAttributeDeclParamCompletions(CustomSyntaxAttributeKind AttrKind,
int ParamIndex);
int ParamIndex, bool HasLabel);
void getTypeAttributeKeywordCompletions();