Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit b6e2bb6

Browse files
committed
[Swift] Add support for call declarations.
Add Clang support for `call` declarations in Swift.
1 parent f6e68ee commit b6e2bb6

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

include/clang/Index/IndexSymbol.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ enum class SymbolSubKind : uint8_t {
9494
SwiftPostfixOperator,
9595
SwiftInfixOperator,
9696

97+
SwiftCall,
9798
SwiftSubscript,
9899
SwiftAssociatedType,
99100
SwiftGenericTypeParam,

include/indexstore/indexstore.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ typedef enum {
254254
INDEXSTORE_SYMBOL_SUBKIND_SWIFTGENERICTYPEPARAM = 1013,
255255
INDEXSTORE_SYMBOL_SUBKIND_SWIFTACCESSORREAD = 1014,
256256
INDEXSTORE_SYMBOL_SUBKIND_SWIFTACCESSORMODIFY = 1015,
257+
INDEXSTORE_SYMBOL_SUBKIND_SWIFTCALL = 1016,
257258
} indexstore_symbol_subkind_t;
258259

259260
typedef enum {

lib/Index/IndexDataStoreUtils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ indexstore_symbol_subkind_t index::getIndexStoreSubKind(SymbolSubKind K) {
386386
return INDEXSTORE_SYMBOL_SUBKIND_SWIFTINFIXOPERATOR;
387387
case SymbolSubKind::SwiftSubscript:
388388
return INDEXSTORE_SYMBOL_SUBKIND_SWIFTSUBSCRIPT;
389+
case SymbolSubKind::SwiftCall:
390+
return INDEXSTORE_SYMBOL_SUBKIND_SWIFTCALL;
389391
case SymbolSubKind::SwiftAssociatedType:
390392
return INDEXSTORE_SYMBOL_SUBKIND_SWIFTASSOCIATEDTYPE;
391393
case SymbolSubKind::SwiftGenericTypeParam:

lib/Index/IndexSymbol.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ StringRef index::getSymbolSubKindString(SymbolSubKind K) {
516516
case SymbolSubKind::SwiftPrefixOperator: return "prefix-operator";
517517
case SymbolSubKind::SwiftPostfixOperator: return "postfix-operator";
518518
case SymbolSubKind::SwiftInfixOperator: return "infix-operator";
519+
case SymbolSubKind::SwiftCall: return "call";
519520
case SymbolSubKind::SwiftSubscript: return "subscript";
520521
case SymbolSubKind::SwiftAssociatedType: return "associated-type";
521522
case SymbolSubKind::SwiftGenericTypeParam: return "generic-type-param";

0 commit comments

Comments
 (0)