Skip to content

Conversation

@Neptunium931
Copy link

Using criterion and clang-tidy with check misc-include-cleaner is not possible because criterion uses an umbrella-headers see: include-cleaner#umbrella-headers clang-tidy makes the following change:

-#include <criterion/criterion.h>
+#include <criterion/internal/test.h>
+#include <criterion/internal/assert.h>

Adding // IWYU pragma: private, include "criterion/criterion.h" in to the private header resolves the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant