diff options
| author | Martin Hořeňovský | 2020-07-29 16:29:41 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-07-29 21:51:05 +0200 |
| commit | ed0ea3014942a952471ca32da466f5df213b5eb2 (patch) | |
| tree | 0bee82bf540fe9cf565a56c90246a4785adc07d1 /src/catch2/internal/catch_test_case_registry_impl.cpp | |
| parent | 35098a62d8a8532a2f61ed28f5c097932b95fc23 (diff) | |
| download | catch3-ed0ea3014942a952471ca32da466f5df213b5eb2.tar.gz | |
Apply some IWYU suggestions
This is not nearly all of them, because IWYU does not support the
way Catch2 manages includes -- it expects that non-system includes
are done using `#include "foo/bar/baz.hpp"`, while Catch2 uses
`<foo/bar/baz.hpp>`. This causes trouble, because IWYU suggests
removing every single internal header, and then adding them again,
but using `""` in the include directive... the resulting suggestions
cannot be used without a lot of manual work, as they are largely
bogus.
For bonus points, IWYU also _loves_ to suggest kinda-random stdlib
headers for `size_t` and similar. Still, the resulting inclusion
graph is somewhat better than it was before.
Diffstat (limited to 'src/catch2/internal/catch_test_case_registry_impl.cpp')
| -rw-r--r-- | src/catch2/internal/catch_test_case_registry_impl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/catch2/internal/catch_test_case_registry_impl.cpp b/src/catch2/internal/catch_test_case_registry_impl.cpp index b7ebe977..3aca929c 100644 --- a/src/catch2/internal/catch_test_case_registry_impl.cpp +++ b/src/catch2/internal/catch_test_case_registry_impl.cpp @@ -17,9 +17,7 @@ #include <catch2/catch_test_spec.hpp> #include <algorithm> -#include <iterator> -#include <random> -#include <sstream> +#include <set> namespace Catch { |