Commit f4e0d07
committed
[core] Fix improper name normalization in KeepNParams
The algorithm was not recording any default arguments into argsToKeep,
but it actually needs to keep them as long as they are followed by a
non-default argument.
This would cause issues such as this:
// std::less<int> is a default argument, but MyAlloc is not
using MyMap = std::map<int, int, std::less<int>, MyAlloc>;
TClass::GetClass("MyMap")->GetName() # prints "map<int,int,MyAlloc>" !1 parent d6dbb52 commit f4e0d07
2 files changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4047 | 4047 | | |
4048 | 4048 | | |
4049 | 4049 | | |
| 4050 | + | |
4050 | 4051 | | |
4051 | 4052 | | |
4052 | 4053 | | |
| |||
4085 | 4086 | | |
4086 | 4087 | | |
4087 | 4088 | | |
| 4089 | + | |
4088 | 4090 | | |
4089 | 4091 | | |
4090 | 4092 | | |
4091 | 4093 | | |
| 4094 | + | |
4092 | 4095 | | |
4093 | 4096 | | |
4094 | 4097 | | |
| |||
4110 | 4113 | | |
4111 | 4114 | | |
4112 | 4115 | | |
| 4116 | + | |
| 4117 | + | |
4113 | 4118 | | |
| 4119 | + | |
4114 | 4120 | | |
4115 | | - | |
4116 | 4121 | | |
4117 | 4122 | | |
4118 | 4123 | | |
4119 | 4124 | | |
4120 | 4125 | | |
4121 | 4126 | | |
4122 | 4127 | | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
4123 | 4131 | | |
4124 | 4132 | | |
4125 | 4133 | | |
| |||
4140 | 4148 | | |
4141 | 4149 | | |
4142 | 4150 | | |
4143 | | - | |
4144 | 4151 | | |
4145 | 4152 | | |
4146 | 4153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
313 | 330 | | |
| 331 | + | |
| 332 | + | |
314 | 333 | | |
315 | 334 | | |
316 | 335 | | |
| |||
0 commit comments