Author: arphaman Date: Wed Oct 18 11:51:48 2017 New Revision: 316105 URL: http://llvm.org/viewvc/llvm-project?rev=316105&view=rev Log: [refactor] Add a doc comment to the test function in the selection unittest.
As suggested by Haojian Wu! Modified: cfe/trunk/unittests/Tooling/ASTSelectionTest.cpp Modified: cfe/trunk/unittests/Tooling/ASTSelectionTest.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/ASTSelectionTest.cpp?rev=316105&r1=316104&r2=316105&view=diff ============================================================================== --- cfe/trunk/unittests/Tooling/ASTSelectionTest.cpp (original) +++ cfe/trunk/unittests/Tooling/ASTSelectionTest.cpp Wed Oct 18 11:51:48 2017 @@ -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, _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits