Skip to content

Commit 132366c

Browse files
authored
Merge pull request #3568 from modocache/lexicon-iwyu
[docs] Add "IWYU" to lexicon
2 parents 8ca1085 + 67cce89 commit 132366c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/Lexicon.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ source code, tests, and commit messages. See also the `LLVM lexicon`_.
8282
it would when a normal Optional is force-unwrapped. IUOs implicitly
8383
convert to and from normal Optionals with the same wrapped type.
8484

85+
IWYU (include what you use)
86+
The accepted wisdom that mplementation files (``.cpp``, `.c`, ``.m``,
87+
``.mm``) should explicity ``#include`` or ``#import`` the headers they use.
88+
Doing so prevents compilation errors when header files are included in a
89+
different order, or when header files are modified to use forward
90+
declarations instead of direct includes.
91+
8592
main module
8693
The module for the file or files currently being compiled.
8794

0 commit comments

Comments
 (0)