Commit d85bbd8
feat: Add Apple Framework header support for __has_include
Apple frameworks store headers under:
<Pkg.framework/Headers/MyHdr.h>
This patch extends `openHeader(...)` so that
`__has_include(<Pkg/MyHdr.h>)` resolves to the framework
layout. A new test `appleFrameworkHasIncludeTest` verifies
the behavior.
Tests:
- Add dummy `Foundation.h` fixture under `testsuite/Foundation.framework/Headers/`.
Note: this applies only to `__has_include`; plain `#include`
still uses the existing lookup logic.
Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>1 parent b4a53dd commit d85bbd8
3 files changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3005 | 3005 | | |
3006 | 3006 | | |
3007 | 3007 | | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
3008 | 3032 | | |
3009 | 3033 | | |
3010 | 3034 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2141 | 2141 | | |
2142 | 2142 | | |
2143 | 2143 | | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
2144 | 2174 | | |
2145 | 2175 | | |
2146 | 2176 | | |
| |||
3407 | 3437 | | |
3408 | 3438 | | |
3409 | 3439 | | |
| 3440 | + | |
3410 | 3441 | | |
3411 | 3442 | | |
3412 | 3443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments