[all-commits] [llvm/llvm-project] 713c30: [clangd] Don't consider class template params part...
Sam McCall via All-commits
all-commits at lists.llvm.org
Fri Nov 15 08:33:41 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 713c30b389602eda5c70b696e8c640487cc8b2cb
https://github.com/llvm/llvm-project/commit/713c30b389602eda5c70b696e8c640487cc8b2cb
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2019-11-15 (Fri, 15 Nov 2019)
Changed paths:
M clang-tools-extra/clangd/AST.cpp
M clang-tools-extra/clangd/XRefs.cpp
M clang-tools-extra/clangd/unittests/XRefsTests.cpp
Log Message:
-----------
[clangd] Don't consider class template params part of constructor name.
Summary:
This is shorter and usually the extra info is noise.
There are cases where the params become type-parameter-0-0 that are hard to fix.
This affects a few features:
- 'name' field in structured hover API (not exposed yet)
- 'name' field in locateSymbolAt (not exposed in LSP)
- 'document/symbol' - the symbol is hierarchically nested in the class
template, or written as foo<t>::foo when defined out-of-line.
Added a test case for hover from https://github.com/clangd/clangd/issues/76.
This patch fixes one field, but no fewer than four others are wrong!
I'll fix them...
Reviewers: hokein
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70308
More information about the All-commits
mailing list