Commit 4f6ab4b
committed
Anchor the macro-resolution request on the declaration to which the macro is attached
The macro-resolution request for an attached macro was expressed in
terms of the custom attribute and the declaration context enclosing the
attribute. While the declaration context is the correct one for
resolving the types and arguments of the custom attribute, the
declaration provides a better anchor for cases where the same
attribute applies to multiple declarations, e.g., with
member-attribute macros, leading to false cyclic references.1 parent 5abb77d commit 4f6ab4b
File tree
5 files changed
+8
-6
lines changed- include/swift/AST
- lib
- AST
- Sema
5 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3258 | 3258 | | |
3259 | 3259 | | |
3260 | 3260 | | |
3261 | | - | |
| 3261 | + | |
3262 | 3262 | | |
3263 | 3263 | | |
3264 | 3264 | | |
| |||
3268 | 3268 | | |
3269 | 3269 | | |
3270 | 3270 | | |
3271 | | - | |
| 3271 | + | |
3272 | 3272 | | |
3273 | 3273 | | |
3274 | 3274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3796 | 3796 | | |
3797 | 3797 | | |
3798 | 3798 | | |
3799 | | - | |
| 3799 | + | |
3800 | 3800 | | |
3801 | 3801 | | |
3802 | 3802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1478 | 1478 | | |
1479 | 1479 | | |
1480 | 1480 | | |
1481 | | - | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
1482 | 1484 | | |
1483 | 1485 | | |
1484 | 1486 | | |
| |||
0 commit comments