Commit Graph

7 Commits

Author SHA1 Message Date
Kim Gräsman bd305afe7d Support 'IWYU pragma: export' for forward declarations
Covers both begin_export/end_export blocks and single-line export
pragmas.

Like with 'IWYU pragma: keep' marks the forward decl as automatically
desired to avoid removing manually exported but unused decls.

Add a simple testcase and update documentation.
2023-01-22 20:32:32 +01:00
Daniel Hannon cf1624a4e2 Add begin_keep and end_keep pragmas, test and docs
this was a proposed issue in #1095 where one could
make a block of keeps as opposed to marking every
keep with a pragma: keep instruction.

added test to verify and updated documentation
where appropriate.
2022-11-02 19:33:10 +01:00
Scott Ramsby d1babfe532 Add custom markdownlint config and update docs to be markdownlint clean 2018-05-29 22:10:09 +02:00
Kristoffer Henriksson a2d8e28250 Allow IWYU pragma: keep on forward declarations as an escape hatch for cases where IWYU incorrectly concludes that a forward declaration is not necessary and recommends its removal. 2017-06-20 21:55:20 -07:00
Kim Grasman 23253ec2e8 Add pragma to set associated header
Sometimes IWYU's auto-detection of associated headers is insufficient.
Add an IWYU pragma to explicitly set associated header.

This is based on an original patch by Ivan Koster.

I added a test and some documentation.
2017-03-10 21:30:35 +01:00
Kim Grasman 3bd23a641c They're #include directives, not statements 2016-02-13 15:38:46 +01:00
Kim Grasman b2887f518d Rename all docs to .md 2015-08-23 21:10:02 +02:00
Renamed from docs/IWYUPragmas.txt (Browse further)