diff --git a/llvm/include/llvm/Testing/Support/Annotations.h b/llvm/include/llvm/Testing/Support/Annotations.h index 1cac1f13618f7..fc9e195a4ad4b 100644 --- a/llvm/include/llvm/Testing/Support/Annotations.h +++ b/llvm/include/llvm/Testing/Support/Annotations.h @@ -73,8 +73,8 @@ class Annotations { /// Order matches the order within the text. std::vector points(llvm::StringRef Name = "") const; /// Returns the mapping of all names of points marked in the text to their - /// position. Unnamed points are mapped to the empty string. Order of points - /// for each name matches the order within the text. + /// position. Unnamed points are mapped to the empty string. The positions are + /// sorted. const llvm::StringMap> &all_points() const; /// Returns the location of the range marked by [[ ]] (or $name[[ ]]). @@ -84,8 +84,8 @@ class Annotations { /// They are ordered by start position within the text. std::vector ranges(llvm::StringRef Name = "") const; /// Returns the mapping of all names of ranges marked in the text to their - /// location. Unnamed ranges are mapped to the empty string. Order of ranges - /// for each name matches the order of start positions within the text. + /// location. Unnamed ranges are mapped to the empty string. The ranges are + /// sorted by their start position. const llvm::StringMap> &all_ranges() const; private: