[clang] Avoid need for SLocEntryLoaded BitVector (PR #67960)

Jakub Kuderski via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 2 16:14:07 PDT 2023


================
@@ -180,6 +180,20 @@ TEST(PagedVectorTest, FillNonTrivialConstructor) {
   EXPECT_EQ(std::distance(V.materialized_begin(), V.materialized_end()), 10LL);
 }
 
+// Test that isMaterialized returns true for all the elements
+// of the page, not only the one that was accessed.
+TEST(PagedVectorTest, IsMaterialized) {
+  PagedVector<int, 10> V;
+  V.resize(20);
+  EXPECT_EQ(V.isMaterialized(0), false);
----------------
kuhar wrote:

We can Uluse `EXPECT_TRUE`/`FALSE`.

https://github.com/llvm/llvm-project/pull/67960


More information about the cfe-commits mailing list