| commit | a4c53284c131bdd1ba2d330d918f42159af4eee2 | [log] [tgz] |
|---|---|---|
| author | Volodymyr Sapsai <vsapsai@apple.com> | Tue Sep 18 23:27:02 2018 +0000 |
| committer | Volodymyr Sapsai <vsapsai@apple.com> | Tue Sep 18 23:27:02 2018 +0000 |
| tree | 7b4f9f003435cc449adc070693a14da3a9bce6e4 | |
| parent | 78381c63ae076f17092236b4e4c80df7fc222f15 [diff] |
Add a callback for `__has_include` and use it for dependency scanning. This adds a preprocessor callback for the `__has_include` and `__has_include_next` directives. Successful checking for the presence of a header should add it to the list of header dependencies so this overrides the callback in the dependency scanner. Patch by Pete Cooper with some additions by me. rdar://problem/39545636 Differential Revision: https://reviews.llvm.org/D30882 llvm-svn: 342517