[clang-tools-extra] 7632d19 - [clangd] Fix typos in the SelectionTree comment.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 5 06:51:06 PST 2022
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.
More information about the cfe-commits
mailing list