Commit 76f5358
committed
Check constructor declarations
- A shim trait is used to check whether the user declared a constructor
- This is implemented by the bridge if you add the constructor trait in bridge
- This will then allow you to implemented constructor for your type
- This prevents constructors not being used silently1 parent 96d3233 commit 76f5358
File tree
3 files changed
+27
-8
lines changed- crates
- cxx-qt-gen
- src/generator/rust
- test_outputs
- cxx-qt/src
3 files changed
+27
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
210 | 217 | | |
211 | 218 | | |
212 | 219 | | |
| |||
599 | 606 | | |
600 | 607 | | |
601 | 608 | | |
| 609 | + | |
602 | 610 | | |
603 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
604 | 619 | | |
605 | 620 | | |
606 | 621 | | |
| |||
619 | 634 | | |
620 | 635 | | |
621 | 636 | | |
622 | | - | |
| 637 | + | |
623 | 638 | | |
624 | 639 | | |
625 | 640 | | |
| |||
633 | 648 | | |
634 | 649 | | |
635 | 650 | | |
636 | | - | |
| 651 | + | |
637 | 652 | | |
638 | 653 | | |
639 | 654 | | |
| |||
725 | 740 | | |
726 | 741 | | |
727 | 742 | | |
728 | | - | |
| 743 | + | |
729 | 744 | | |
730 | 745 | | |
731 | 746 | | |
| |||
753 | 768 | | |
754 | 769 | | |
755 | 770 | | |
756 | | - | |
| 771 | + | |
757 | 772 | | |
758 | 773 | | |
759 | 774 | | |
| |||
767 | 782 | | |
768 | 783 | | |
769 | 784 | | |
770 | | - | |
| 785 | + | |
771 | 786 | | |
772 | 787 | | |
773 | 788 | | |
| |||
806 | 821 | | |
807 | 822 | | |
808 | 823 | | |
809 | | - | |
| 824 | + | |
810 | 825 | | |
811 | 826 | | |
812 | 827 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
| |||
307 | 310 | | |
308 | 311 | | |
309 | 312 | | |
310 | | - | |
| 313 | + | |
311 | 314 | | |
312 | 315 | | |
313 | 316 | | |
| |||
401 | 404 | | |
402 | 405 | | |
403 | 406 | | |
404 | | - | |
| 407 | + | |
405 | 408 | | |
406 | 409 | | |
407 | 410 | | |
| |||
0 commit comments