[clang-tools-extra] [clangd] Use `SymbolName` to represent Objective-C selectors (PR #82061)

David Goldman via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 14 13:33:05 PDT 2025


================
@@ -605,12 +607,12 @@ findAllSelectorPieces(llvm::ArrayRef<syntax::Token> Tokens,
       auto PieceCount = SelectorPieces.size();
       if (PieceCount < NumArgs &&
           isMatchingSelectorName(Tok, Tokens[Index + 1], SM,
-                                 Sel.getNameForSlot(PieceCount))) {
+                                 Name.getNamePieces()[PieceCount])) {
----------------
DavidGoldman wrote:

nit: can store the pieces as a variable around L600 to make this look a bit cleaner.

https://github.com/llvm/llvm-project/pull/82061


More information about the cfe-commits mailing list