# Possibly unused #include directive

**URL:** <https://platform.jetbrains.com/t/possibly-unused-include-directive/4536>\
**Category:** ReSharper Platform\
**Tags:** plugin-development, clion\
**Created:** [June 23, 2026, 1:48pm UTC](https://platform.jetbrains.com/t/possibly-unused-include-directive/4536 "2026-06-23T13:48:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SergejSalnikov](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/sergejsalnikov/32/2118_2.png) [@SergejSalnikov](https://platform.jetbrains.com/u/SergejSalnikov)\
**Post date:** [June 23, 2026, 1:48pm UTC](https://platform.jetbrains.com/t/possibly-unused-include-directive/4536/1 "2026-06-23T13:48:53Z")

</div>

Hi, Is there a way to configure `CppUnusedIncludeDirective`?

In projects we are using some include files act as a public API re-exporting other headers.

Those includes are reported as `Possibly unused`. For example: #include “testing/base/public/gunit.h”

Which internally reexports

```cpp
#include "googletest/include/gtest/gtest.h" // IWYU pragma: export

```

Is there a way to teach `CppUnusedIncludeDirective` that include annotated with `// IWYU pragma: export` should be inlined to prevent false-positives.
