OSDN Git Service

[clangd] ExpandAutoType: Do not offer code action on lambdas.
authorAdam Czachorowski <adamcz@google.com>
Tue, 1 Dec 2020 15:53:21 +0000 (16:53 +0100)
committerAdam Czachorowski <adamcz@google.com>
Tue, 8 Dec 2020 19:03:16 +0000 (20:03 +0100)
commit3c5bed734f9e02bd3bc4fbd1e0acc53506823ebf
tree379b378032cb68479014bb982c45f8572a8c6003
parent5b5d3fa9d9cf9e0b8904de0dc9ea5248f6a37ed1
[clangd] ExpandAutoType: Do not offer code action on lambdas.

We can't expand lambda types anyway. Now we simply not offer the code
action instead of showing it and then returning an error in apply().

Differential Revision: https://reviews.llvm.org/D92847
clang-tools-extra/clangd/refactor/tweaks/ExpandAutoType.cpp
clang-tools-extra/clangd/test/check-fail.test
clang-tools-extra/clangd/unittests/TweakTests.cpp