Skip to content

Headers with IWYU keep/export pragma should not be diagnosed as unused #59541

@hokein

Description

@hokein

The library should never trigger unused warning on includes with IWYU keep/export pragma even if they are deemed unused in the main file.

// main.cc
#include "unused.h" // IWYU pragma: keep 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions