This revision was automatically updated to reflect the committed changes.
Closed by commit rG1b66840f7103: [clangd][ObjC] Support ObjC class rename from
implementation decls (authored by dgoldman).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152720
dgoldman updated this revision to Diff 534618.
dgoldman marked an inline comment as done.
dgoldman added a comment.
Fixes for review + rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152720/new/
https://reviews.llvm.org/D152720
Files:
clang
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
thanks!
Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:144
+const NamedDecl *pickInterestingTarget(const NamedDecl *D) {
+ // We only support renaming the cl
dgoldman added inline comments.
Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:787
+ // names like class and protocol names.
+ if (const auto *CD = dyn_cast(&RenameDecl))
+if (CD->getName() != IdentifierToken->text(SM))
kadircet wrote:
> this spec
dgoldman updated this revision to Diff 533993.
dgoldman marked 4 inline comments as done.
dgoldman added a comment.
Fixes for review
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152720/new/
https://reviews.llvm.org/D152720
Files:
clang-tools-ex
kadircet added inline comments.
Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:164
AST.getHeuristicResolver())) {
Result.insert(canonicalRenameDecl(D));
}
before calling `canonicalRenameDecl` here we can do a `D =
pickInteres
dgoldman marked an inline comment as done.
dgoldman added inline comments.
Comment at: clang-tools-extra/clangd/FindTarget.cpp:716
+void VisitObjCImplementationDecl(const ObjCImplementationDecl *OIMD) {
+ if (const auto *CI = OIMD->getClassInterface())
+Refs.push
dgoldman updated this revision to Diff 533769.
dgoldman marked an inline comment as done.
dgoldman added a comment.
Add more FindTarget tests
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152720/new/
https://reviews.llvm.org/D152720
Files:
clang
dgoldman updated this revision to Diff 533640.
dgoldman added a comment.
Disable renaming categories
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152720/new/
https://reviews.llvm.org/D152720
Files:
clang-tools-extra/clangd/FindTarget.cpp
clan
dgoldman added inline comments.
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:131
return HighlightingKind::Interface;
- if (isa(D))
+ if (isa(D))
return HighlightingKind::Namespace;
kadircet wrote:
> let's do this in a separate change,
kadircet added inline comments.
Comment at: clang-tools-extra/clangd/FindTarget.cpp:715
+
+void VisitObjCImplementationDecl(const ObjCImplementationDecl *OIMD) {
+ if (const auto *CI = OIMD->getClassInterface())
can you also add tests for these into `Fin
dgoldman updated this revision to Diff 531439.
dgoldman added a comment.
- Implement discussed fixes + category support
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152720/new/
https://reviews.llvm.org/D152720
Files:
clang-tools-extra/clangd/Fi
dgoldman updated this revision to Diff 530665.
dgoldman added a comment.
Run clang format
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152720/new/
https://reviews.llvm.org/D152720
Files:
clang-tools-extra/clangd/FindTarget.cpp
clang-tools-ext
dgoldman created this revision.
dgoldman added a reviewer: kadircet.
Herald added a subscriber: arphaman.
Herald added a project: All.
dgoldman requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
Repository:
14 matches
Mail list logo