Commit 19efbd1
authored
[BoundsSafety] Do not check for bounds-attr output arguments in dependent contexts (swiftlang#9733) (swiftlang#10029)
The bounds-attribute-only mode may be applied to C++ programs, where
attributed functions/fields may be used in dependent contexts such as
a template. DO NOT type check at those places. Their instantiations
will still be checked.
(rdar://141708643)1 parent a943c37 commit 19efbd1
File tree
2 files changed
+12
-5
lines changed- clang
- lib/Sema
- test/BoundsSafety/Sema
2 files changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
8251 | 8252 | | |
8252 | 8253 | | |
8253 | 8254 | | |
8254 | | - | |
| 8255 | + | |
8255 | 8256 | | |
8256 | 8257 | | |
8257 | 8258 | | |
| |||
8823 | 8824 | | |
8824 | 8825 | | |
8825 | 8826 | | |
8826 | | - | |
| 8827 | + | |
| 8828 | + | |
| 8829 | + | |
| 8830 | + | |
8827 | 8831 | | |
8828 | 8832 | | |
8829 | 8833 | | |
| |||
26011 | 26015 | | |
26012 | 26016 | | |
26013 | 26017 | | |
26014 | | - | |
| 26018 | + | |
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
0 commit comments