Allow generators to declare themselves (infinite)

This will be useful later to implement warning on infinitely
running `GENERATE` expressions.
This commit is contained in:
Martin Hořeňovský committed 2026-02-10 09:37:15 +01:00
1 parent 0056cd4efb
commit d079ee13ab
31 files changed
+869 -18

No files matched your search

+2
View File
@@ -40,6 +40,8 @@ public:
return true;
}
bool isFinite() const override { return false; }
// Note: this improves the performance only a bit, but it is here
// to show how you can override the skip functionality.
void skipToNthElementImpl( std::size_t n ) override {
+2
View File
@@ -40,6 +40,8 @@ public:
bool next() override {
return !!std::getline(m_stream, m_line);
}
bool isFinite() const override { return true; }
};
std::string const& LineGenerator::get() const {