[docs] Update PostingList string representation format
authorKirill Bobyrev <kbobyrev.opensource@gmail.com>
Wed, 26 Sep 2018 14:59:49 +0000 (14:59 +0000)
committerKirill Bobyrev <kbobyrev.opensource@gmail.com>
Wed, 26 Sep 2018 14:59:49 +0000 (14:59 +0000)
Because `PostingList` objects are compressed, it is now impossible to
see elements other than the current one and the documentation doesn't
match implementation anymore.

Reviewed By: ioeric

Differential Revision: https://reviews.llvm.org/D52545

llvm-svn: 343116

clang-tools-extra/clangd/index/dex/Iterator.h

index 5e5460f012547be6146abadccd1dc19a5268a5d0..3066a8c78460092276afce0a4967fefe3e349310 100644 (file)
@@ -94,9 +94,8 @@ public:
   ///
   /// Where Type is the iterator type representation: "&" for And, "|" for Or,
   /// ChildN is N-th iterator child. Raw iterators over PostingList are
-  /// represented as "[ID1, ID2, ..., {IDN}, ... END]" where IDN is N-th
-  /// PostingList entry and the element which is pointed to by the PostingList
-  /// iterator is enclosed in {} braces.
+  /// represented as "[... CurID ...]" where CurID is the current PostingList
+  /// entry being inspected.
   friend llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
                                        const Iterator &Iterator) {
     return Iterator.dump(OS);