[all-commits] [llvm/llvm-project] 38f995: [clangd] Don't assert when completing a lambda var...
Sam McCall via All-commits
all-commits at lists.llvm.org
Wed Jun 10 02:17:46 PDT 2020
Branch: refs/heads/release/10.x
Home: https://github.com/llvm/llvm-project
Commit: 38f995e4cb4c77c4a64cd1fedc1aeae91d8281cc
https://github.com/llvm/llvm-project/commit/38f995e4cb4c77c4a64cd1fedc1aeae91d8281cc
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2020-06-10 (Wed, 10 Jun 2020)
Changed paths:
M clang-tools-extra/clangd/AST.cpp
M clang-tools-extra/clangd/AST.h
M clang-tools-extra/clangd/CodeComplete.cpp
M clang-tools-extra/clangd/Quality.cpp
M clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
Log Message:
-----------
[clangd] Don't assert when completing a lambda variable inside the lambda.
Summary:
This is a fairly ugly hack - we back off several features for any variable
whose type isn't deduced, to avoid computing/caching linkage.
Better suggestions welcome.
Fixes https://github.com/clangd/clangd/issues/274
Reviewers: kadircet, kbobyrev
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D73960
(cherry picked from commit 2629035a009095f62f48413e175437261165ecd7)
More information about the All-commits
mailing list