The help text for -I was recently expanded in this commit:
The updated version:
- describes the internal implementation in Clang, and
- is inconsistently long when compared to other options printed with clang -help.
We are now in the process of adding support for -I in Flang and this
expanded description is invalid as far as Flang is concerned (i.e. it
does not reflect Flang's internal implementation). See this review:
This patch reverts the original change in Options.td. This way the
description of -I remains generic and valid for both Clang and Flang.
Clang's internal documentation for -I is available in
ClangCommandLineReference.rst (it's identical to what's being removed
here, so no information is lost).
How about Add directory to the end of the list of include search paths or something similar? There is an order in which the directories are used.