To be used by define-inline code action to determine whether the
function/method body will still be valid in another context.
Traverses clang-ast to find all decl nodes under the function decl and stores
the non-local ones.
Paths
| Differential D67748
[clangd] Add a helper for extracting nonlocal decls in a FunctionDecl ClosedPublic Authored by kadircet on Sep 18 2019, 11:50 PM.
Details Summary To be used by define-inline code action to determine whether the Traverses clang-ast to find all decl nodes under the function decl and stores
Diff Detail
Event TimelineComment Actions I think the helper is only used by the defineInline tweak? not sure XRef.h is the best place for putting these helpers.
Comment Actions I think in the future (after https://reviews.llvm.org/D67826), we can use the findExplicitReferences to implement it. This revision is now accepted and ready to land.Sep 23 2019, 5:04 AM kadircet added a child revision: D65433: [clangd] DefineInline action availability checks.Sep 23 2019, 6:06 AM kadircet added a parent revision: D67826: [clangd] A helper to find explicit references and their names. kadircet added a parent revision: D68027: [clangd] Change constness of parameters to findExplicitRefs.Sep 25 2019, 7:54 AM Closed by commit rL372948: [clangd] Add a helper for extracting nonlocal decls in a FunctionDecl (authored by kadircet). · Explain WhySep 26 2019, 12:27 AM This revision was automatically updated to reflect the committed changes. kadircet removed a child revision: D65433: [clangd] DefineInline action availability checks.Oct 16 2019, 6:49 AM
Revision Contents
Diff 221892 clang-tools-extra/trunk/clangd/XRefs.h
clang-tools-extra/trunk/clangd/XRefs.cpp
clang-tools-extra/trunk/clangd/unittests/XRefsTests.cpp
|