[refactor] Add a doc comment to the test function in the selection
authorAlex Lorenz <arphaman@gmail.com>
Wed, 18 Oct 2017 18:51:48 +0000 (18:51 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 18 Oct 2017 18:51:48 +0000 (18:51 +0000)
unittest.

As suggested by Haojian Wu!

llvm-svn: 316105

clang/unittests/Tooling/ASTSelectionTest.cpp

index 386ae33..79e89f9 100644 (file)
@@ -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,