From 7d32fda9bcc7732a6bc9289ff03d4d8756ea5847 Mon Sep 17 00:00:00 2001 From: Sagar Rathode Date: Fri, 26 Sep 2025 18:00:39 +0530 Subject: [PATCH] Index: Handle SwiftAccessorBorrow and SwiftAccessorMutate in getAccessorName --- clang/lib/Index/IndexDataStoreUtils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clang/lib/Index/IndexDataStoreUtils.cpp b/clang/lib/Index/IndexDataStoreUtils.cpp index 6b77618befb79..a0092bedd2dc4 100644 --- a/clang/lib/Index/IndexDataStoreUtils.cpp +++ b/clang/lib/Index/IndexDataStoreUtils.cpp @@ -401,6 +401,12 @@ indexstore_symbol_subkind_t index::getIndexStoreSubKind(SymbolSubKind K) { return INDEXSTORE_SYMBOL_SUBKIND_SWIFTACCESSORMUTABLEADDRESSOR; case SymbolSubKind::SwiftAccessorRead: return INDEXSTORE_SYMBOL_SUBKIND_SWIFTACCESSORREAD; + case SymbolSubKind::SwiftAccessorBorrow: + // New in Swift: _read accessor + return "borrow"; + case SymbolSubKind::SwiftAccessorMutate: + // New in Swift: _modify accessor + return "mutate"; case SymbolSubKind::SwiftAccessorModify: return INDEXSTORE_SYMBOL_SUBKIND_SWIFTACCESSORMODIFY; case SymbolSubKind::SwiftAccessorInit: