From 7e9c7d87574c483f373b9e7f211677d9a5bf2edc Mon Sep 17 00:00:00 2001
From: Alex Lorenz <arphaman@gmail.com>
Date: Wed, 18 Oct 2017 18:51:48 +0000
Subject: [PATCH] [refactor] Add a doc comment to the test function in the
 selection unittest.

As suggested by Haojian Wu!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316105 91177308-0d34-0410-b5e6-96231b3b80d8
---
 unittests/Tooling/ASTSelectionTest.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/unittests/Tooling/ASTSelectionTest.cpp b/unittests/Tooling/ASTSelectionTest.cpp
index 386ae336a8b..79e89f90f49 100644
--- a/unittests/Tooling/ASTSelectionTest.cpp
+++ b/unittests/Tooling/ASTSelectionTest.cpp
@@ -59,6 +59,11 @@ public:
   }
 };
 
+/// This is a test utility function that computes the AST selection at the
+/// given location with an optional selection range.
+///
+/// A location roughly corresponds to a cursor location in an editor, while
+/// the optional range corresponds to the selection range in an editor.
 void findSelectedASTNodesWithRange(
     StringRef Source, FileLocation Location, Optional<FileRange> SelectionRange,
     llvm::function_ref<void(SourceRange SelectionRange,
-- 
GitLab