[clang] [clang-tools-extra] [clangd] Add support to rename Objective-C selectors (PR #78872)

Ben Barham via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 30 19:31:42 PST 2024


================
@@ -1004,6 +1004,17 @@ struct CodeActionParams {
 };
 bool fromJSON(const llvm::json::Value &, CodeActionParams &, llvm::json::Path);
 
+struct PrepareRenameResult {
+  /// The range of the string to rename.
+  Range range;
+  /// A placeholder text of the string content to be renamed.
+  ///
+  /// This is usueful to populate the rename field with an Objective-C selector
----------------
bnbarham wrote:

```suggestion
  /// This is useful to populate the rename field with an Objective-C selector
```

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


More information about the cfe-commits mailing list