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.
This commit is contained in:
Martin Hořeňovský 2020-07-29 16:29:41 +02:00
parent 35098a62d8
commit ed0ea30149
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
31 changed files with 35 additions and 45 deletions

View file

@ -13,7 +13,6 @@
#include <algorithm>
#include <cassert>
#include <memory>
#include <sstream>
#if defined(__clang__)
# pragma clang diagnostic push