[clang] [clang-tools-extra] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)
Michael Spencer via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 14 11:01:27 PST 2025
Bigcheese wrote:
It's intentional that Clang reports these as dependencies. What issue do you have where you think this is the wrong behavior?
More specifically, https://reviews.llvm.org/D30882 originally added the behavior. This references an internal Apple bug that occurred when you have code that checks for the presence of a header but does not include it. Not reporting that dependency can lead to failed builds or miscompiles in incremental builds.
https://github.com/llvm/llvm-project/pull/120673
More information about the cfe-commits
mailing list