[PATCH] D75106: [clangd] Fix early selection for non-vardecl declarators
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 03:49:02 PST 2020
sammccall added inline comments.
================
Comment at: clang-tools-extra/clangd/Selection.cpp:615
+ if (isa<CXXConstructorDecl>(D))
+ return SourceRange();
+ // This will capture Field, Function, MSProperty, NonTypeTemplateParm and
----------------
we may have to blacklist deduction guides too?
================
Comment at: clang-tools-extra/clangd/unittests/SelectionTests.cpp:378
"ObjCPropertyRefExpr"},
+ {"struct foo { [[int has^h<:32:>]]; };", "FieldDecl"},
+ // FIXME: This should be class itself instead.
----------------
can you add the other special cases we discussed offline? conversion operations should be triggered by `operator`, destructors by `~`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75106/new/
https://reviews.llvm.org/D75106
More information about the cfe-commits
mailing list