Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/generators
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-05-05 21:07:16 +0200
committerMartin Hořeňovský2020-05-06 11:21:46 +0200
commit6020f8f27cf6d0c1c1ead6ee93f0c5b067e9f2c1 (patch)
tree45c96d04c0af0c52d3eabfb8af1b0486640dfad1 /src/catch2/generators
parent26622f16203516adf32fd7130fc1eeab5746fc1e (diff)
downloadcatch3-6020f8f27cf6d0c1c1ead6ee93f0c5b067e9f2c1.tar.gz
Add convenience headers that include all headers in a subpart
The naming scheme is simple, to include all matchers, include header `catch2/matchers/catch_matchers_all.hpp`. To include **everything**, include `catch2/catch_all.hpp`.
Diffstat (limited to 'src/catch2/generators')
-rw-r--r--src/catch2/generators/catch_generators_all.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/catch2/generators/catch_generators_all.hpp b/src/catch2/generators/catch_generators_all.hpp
new file mode 100644
index 00000000..f8e7459d
--- /dev/null
+++ b/src/catch2/generators/catch_generators_all.hpp
@@ -0,0 +1,23 @@
+/** \file
+ * This is a convenience header for Catch2's Generator support. It includes
+ * **all** of Catch2 headers related to generators.
+ *
+ * Generally the Catch2 users should use specific includes they need,
+ * but this header can be used instead for ease-of-experimentation, or
+ * just plain convenience, at the cost of (significantly) increased
+ * compilation times.
+ *
+ * When a new header is added to either the `generators` folder,
+ * or to the corresponding internal subfolder, it should be added here.
+ */
+
+#ifndef CATCH_GENERATORS_ALL_HPP_INCLUDED
+#define CATCH_GENERATORS_ALL_HPP_INCLUDED
+
+#include <catch2/generators/catch_generator_exception.hpp>
+#include <catch2/generators/catch_generators.hpp>
+#include <catch2/generators/catch_generators_adapters.hpp>
+#include <catch2/generators/catch_generators_random.hpp>
+#include <catch2/generators/catch_generators_range.hpp>
+
+#endif // CATCH_GENERATORS_ALL_HPP_INCLUDED