[PATCH] D112712: [clangd] SelectionTree should prefer lexical declcontext

2021-10-28 Thread Kadir Cetinkaya via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. kadircet marked an inline comment as done. Closed by commit rG3d735480bd2a: [clangd] SelectionTree should prefer lexical declcontext (authored by kadircet). Changed prior to commit: https://reviews.llvm.org/D112712?vs=383

[PATCH] D112712: [clangd] SelectionTree should prefer lexical declcontext

2021-10-28 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet marked 3 inline comments as done. kadircet added inline comments. Comment at: clang-tools-extra/clangd/unittests/SelectionTests.cpp:751 + { +auto ST = SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), + Test.poi

[PATCH] D112712: [clangd] SelectionTree should prefer lexical declcontext

2021-10-28 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/clangd/Selection.cpp:893 const DeclContext &SelectionTree::Node::getDeclContext() const { for (const Node *CurrentNode = this; C

[PATCH] D112712: [clangd] SelectionTree should prefer lexical declcontext

2021-10-28 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 383008. kadircet edited the summary of this revision. kadircet added a comment. - Related https://github.com/clangd/clangd/issues/900. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D112712/new/ https://reviews.

[PATCH] D112712: [clangd] SelectionTree should prefer lexical declcontext

2021-10-28 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet created this revision. kadircet added a reviewer: sammccall. Herald added subscribers: usaxena95, arphaman. kadircet requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. This is important especially fo