Commit 4b31382
committed
[swift-settings] Only allow for a setting to be passed exactly once to #SwiftSettings.
This responds to some feedback on the forums. Most importantly this allows for
us to use variadic generics in the the type system to document whether we allow
for "appending" behavior or not. Previously, for some options we would take the
last behavior (and theoretically) for others would have silently had appending
behavior. This just makes the behavior simple and more explicit.1 parent cd38b78 commit 4b31382
File tree
4 files changed
+70
-3
lines changed- include/swift/AST
- lib/AST
- test/Sema
4 files changed
+70
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8399 | 8399 | | |
8400 | 8400 | | |
8401 | 8401 | | |
| 8402 | + | |
| 8403 | + | |
| 8404 | + | |
| 8405 | + | |
| 8406 | + | |
8402 | 8407 | | |
8403 | 8408 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
4191 | 4192 | | |
4192 | 4193 | | |
4193 | 4194 | | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
4194 | 4201 | | |
4195 | 4202 | | |
4196 | 4203 | | |
4197 | 4204 | | |
4198 | 4205 | | |
| 4206 | + | |
| 4207 | + | |
4199 | 4208 | | |
4200 | 4209 | | |
4201 | 4210 | | |
4202 | 4211 | | |
4203 | 4212 | | |
4204 | 4213 | | |
4205 | 4214 | | |
| 4215 | + | |
| 4216 | + | |
4206 | 4217 | | |
4207 | | - | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
4208 | 4230 | | |
4209 | 4231 | | |
4210 | 4232 | | |
| |||
4263 | 4285 | | |
4264 | 4286 | | |
4265 | 4287 | | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
| 4301 | + | |
| 4302 | + | |
4266 | 4303 | | |
| 4304 | + | |
4267 | 4305 | | |
4268 | 4306 | | |
4269 | 4307 | | |
4270 | 4308 | | |
4271 | 4309 | | |
4272 | 4310 | | |
| 4311 | + | |
4273 | 4312 | | |
4274 | 4313 | | |
4275 | 4314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments