Commit 81dad8f
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 cfd1797 commit 81dad8f
3 files changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3012 | 3012 | | |
3013 | 3013 | | |
3014 | 3014 | | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
3015 | 3039 | | |
3016 | 3040 | | |
3017 | 3041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2131 | 2131 | | |
2132 | 2132 | | |
2133 | 2133 | | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
2134 | 2164 | | |
2135 | 2165 | | |
2136 | 2166 | | |
| |||
3359 | 3389 | | |
3360 | 3390 | | |
3361 | 3391 | | |
| 3392 | + | |
3362 | 3393 | | |
3363 | 3394 | | |
3364 | 3395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments