This is an archive of the discontinued LLVM Phabricator instance.

[llvm] Add IWYU pragmas to GTest
ClosedPublic

Authored by kbobyrev on Feb 9 2022, 1:03 AM.

Details

Summary

This will allow using tools like Include-What-You-Use and clangd
IncludeCleaner. The tools will correctly identify the public headers
responsible for importing symbols in the testing code.

This is a backport of https://github.com/google/googletest/commit/100f6fbf5f81a82d163c1e29735e8a2936eacd4f

The only untouched file from that patch is
googletest/include/gtest/gtest_prod.h because the change is unrelated.

Diff Detail

Event Timeline

kbobyrev created this revision.Feb 9 2022, 1:03 AM
kbobyrev requested review of this revision.Feb 9 2022, 1:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2022, 1:03 AM
sammccall accepted this revision.Feb 9 2022, 1:49 AM
This revision is now accepted and ready to land.Feb 9 2022, 1:49 AM
This revision was landed with ongoing or failed builds.Feb 9 2022, 2:06 AM
This revision was automatically updated to reflect the committed changes.