[all-commits] [llvm/llvm-project] 2da5c5: [clangd] Add inlay hints for auto-typed parameters...
Sam McCall via All-commits
all-commits at lists.llvm.org
Wed Mar 23 09:26:42 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2da5c5781e5a833f52a47752d76423bbb7bcf1a1
https://github.com/llvm/llvm-project/commit/2da5c5781e5a833f52a47752d76423bbb7bcf1a1
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2022-03-23 (Wed, 23 Mar 2022)
Changed paths:
M clang-tools-extra/clangd/AST.cpp
M clang-tools-extra/clangd/AST.h
M clang-tools-extra/clangd/InlayHints.cpp
M clang-tools-extra/clangd/unittests/ASTTests.cpp
M clang-tools-extra/clangd/unittests/InlayHintTests.cpp
M clang-tools-extra/clangd/unittests/TestTU.cpp
Log Message:
-----------
[clangd] Add inlay hints for auto-typed parameters with one instantiation.
This takes a similar approach as b9b6938183e, and shares some code.
The code sharing is limited as inlay hints wants to deduce the type of the
variable rather than the type of the `auto` per-se.
It drops support (in both places) for multiple instantiations yielding the same
type, as this is pretty rare and hard to build a nice API around.
Differential Revision: https://reviews.llvm.org/D120258
More information about the All-commits
mailing list