Author: Sam McCall
Date: 2022-02-01T16:01:53+01:00
New Revision: 7af1a2ed815dda133f9088fdfd3979f843edfcc9

URL: 
https://github.com/llvm/llvm-project/commit/7af1a2ed815dda133f9088fdfd3979f843edfcc9
DIFF: 
https://github.com/llvm/llvm-project/commit/7af1a2ed815dda133f9088fdfd3979f843edfcc9.diff

LOG: [clangd] Fix handling of co_await in go-to-type

Added: 
    

Modified: 
    clang-tools-extra/clangd/XRefs.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/XRefs.cpp 
b/clang-tools-extra/clangd/XRefs.cpp
index c6a24450c0d1..fea143e67824 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.


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to