[refactor] Add a doc comment to the test function in the selection

unittest.

As suggested by Haojian Wu!

llvm-svn: 316105
This commit is contained in:
Alex Lorenz 2017-10-18 18:51:48 +00:00
parent cd6c78386f
commit ce781e4010
1 changed files with 5 additions and 0 deletions

View 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,