Author: Haojian Wu
Date: 2022-01-05T15:50:07+01:00
New Revision: 7632d19ada4a1feebc4a06067490ee1c77cd4dc1

URL: 
https://github.com/llvm/llvm-project/commit/7632d19ada4a1feebc4a06067490ee1c77cd4dc1
DIFF: 
https://github.com/llvm/llvm-project/commit/7632d19ada4a1feebc4a06067490ee1c77cd4dc1.diff

LOG: [clangd] Fix typos in the SelectionTree comment.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/Selection.cpp 
b/clang-tools-extra/clangd/Selection.cpp
index c7a3aacf0f1e..ef964da7b28d 100644
--- a/clang-tools-extra/clangd/Selection.cpp
+++ b/clang-tools-extra/clangd/Selection.cpp
@@ -742,7 +742,7 @@ class SelectionVisitor : public 
RecursiveASTVisitor<SelectionVisitor> {
     //
     // Example:
     //   Vec<R<int>(*[2])(A<char>)> is a Vec of arrays of pointers to 
functions,
-    //                              which accept A<int> and return R<char>.
+    //                              which accept A<char> and return R<int>.
     // The TypeLoc hierarchy:
     //   Vec<R<int>(*[2])(A<char>)> m;
     //   Vec<--------------------->      TemplateSpecialization Vec
@@ -753,7 +753,7 @@ class SelectionVisitor : public 
RecursiveASTVisitor<SelectionVisitor> {
     //       R<--->                              |-TemplateSpecialization R
     //         int                               | `-Builtin int
     //                    A<---->                `-TemplateSpecialization A
-    //                      char                   `-Builtin int
+    //                      char                   `-Builtin char
     //
     // In each row, --- represents unclaimed parts of the SourceRange.
     // For declarator types, we are careful never to claim these.


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

Reply via email to