Currently template parameters has symbolkind Unknown. This patch
introduces a new kind TemplateParm for templatetemplate, templatetype and
nontypetemplate parameters.
Also adds tests in clangd hover feature.
Paths
| Differential D73696
[clang][Index] Introduce a TemplateParm SymbolKind ClosedPublic Authored by kadircet on Jan 30 2020, 5:15 AM.
Details Summary Currently template parameters has symbolkind Unknown. This patch Also adds tests in clangd hover feature.
Diff Detail
Event TimelineComment Actions Unit tests: fail. 62337 tests passed, 1 failed and 838 were skipped. failed: libc++.std/containers/sequences/array/array_creation/to_array.fail.cpp clang-tidy: pass. clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch. Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project. Comment Actions Libclang changes need tests I think.
kadircet marked 2 inline comments as done. Comment Actions
hokein added inline comments.
This revision is now accepted and ready to land.Feb 14 2020, 12:39 AM kadircet added inline comments.
Closed by commit rG84240e0db8ab: [clang][Index] Introduce a TemplateParm SymbolKind (authored by kadircet). · Explain WhyFeb 14 2020, 4:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 244622 clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Protocol.cpp
clang-tools-extra/clangd/Quality.cpp
clang-tools-extra/clangd/unittests/HoverTests.cpp
clang/include/clang/Index/IndexSymbol.h
clang/lib/Index/IndexSymbol.cpp
clang/tools/libclang/CXIndexDataConsumer.cpp
clang/unittests/Index/IndexTests.cpp
|
I think these two should belong to CompletionItemKind::TypeParameter?