From bb10e03fba7106e51d2e64269d10c3ba95055b26 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Wed, 5 Jan 2022 16:00:13 +0100 Subject: [PATCH] [clangd] Refine comment on declarator ranges --- clang-tools-extra/clangd/Selection.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/clang-tools-extra/clangd/Selection.cpp b/clang-tools-extra/clangd/Selection.cpp index ef964da..7dc8a86 100644 --- a/clang-tools-extra/clangd/Selection.cpp +++ b/clang-tools-extra/clangd/Selection.cpp @@ -745,19 +745,19 @@ private: // which accept A and return R. // The TypeLoc hierarchy: // Vec(*[2])(A)> m; - // Vec<---------------------> TemplateSpecialization Vec + // Vec<#####################> TemplateSpecialization Vec // --------[2]---------- `-Array // -------*------------- `-Pointer // ------(----)--------- `-Paren - // ------------(-------) `-Function - // R<---> |-TemplateSpecialization R + // ------------(#######) `-Function + // R<###> |-TemplateSpecialization R // int | `-Builtin int - // A<----> `-TemplateSpecialization A + // A<####> `-TemplateSpecialization A // char `-Builtin char // - // In each row, --- represents unclaimed parts of the SourceRange. - // For declarator types, we are careful never to claim these. - // For non-declarator types, children are guaranteed to claim them first. + // In each row + // --- represents unclaimed parts of the SourceRange. + // ### represents parts that children already claimed. if (const auto *TL = N.get()) { if (auto PTL = TL->getAs()) { claimRange(PTL.getLParenLoc(), Result); -- 2.7.4