From 7af1a2ed815dda133f9088fdfd3979f843edfcc9 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Tue, 1 Feb 2022 16:01:46 +0100 Subject: [PATCH] [clangd] Fix handling of co_await in go-to-type --- clang-tools-extra/clangd/XRefs.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clang-tools-extra/clangd/XRefs.cpp b/clang-tools-extra/clangd/XRefs.cpp index c6a2445..fea143e 100644 --- a/clang-tools-extra/clangd/XRefs.cpp +++ b/clang-tools-extra/clangd/XRefs.cpp @@ -1861,9 +1861,7 @@ static QualType typeForNode(const SelectionTree::Node *N) { QualType VisitCXXThrowExpr(const CXXThrowExpr *S) { return S->getSubExpr()->getType(); } - // FIXME(sammccall): this should be VisitCoyieldExpr - // see https://reviews.llvm.org/D115634 - QualType visitCoyieldStmt(const CoyieldExpr *S) { + QualType VisitCoyieldExpr(const CoyieldExpr *S) { return type(S->getOperand()); } // Treat a designated initializer like a reference to the field. -- 2.7.4