[clang-tools-extra] 7af1a2e - [clangd] Fix handling of co_await in go-to-type

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 1 07:01:59 PST 2022


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.


        


More information about the cfe-commits mailing list