Commit 5875949
codegen: Look through typedefs to detect void return type. (#2379)
* codegen: Look through typedefs to detect void return type.
And reuse a bit more code.
Should fix #2377, but needs a test (can't run tests atm).
* Add tests
* Run rustfmt
* Update changelog
Co-authored-by: Christian Poveda <[email protected]>1 parent 1abaf7e commit 5875949
File tree
6 files changed
+71
-25
lines changed- bindgen-tests/tests
- expectations/tests
- headers
- bindgen/codegen
6 files changed
+71
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4135 | 4135 | | |
4136 | 4136 | | |
4137 | 4137 | | |
4138 | | - | |
4139 | | - | |
4140 | | - | |
4141 | | - | |
4142 | | - | |
| 4138 | + | |
4143 | 4139 | | |
4144 | 4140 | | |
4145 | 4141 | | |
| |||
4811 | 4807 | | |
4812 | 4808 | | |
4813 | 4809 | | |
4814 | | - | |
| 4810 | + | |
4815 | 4811 | | |
4816 | 4812 | | |
| 4813 | + | |
4817 | 4814 | | |
4818 | 4815 | | |
4819 | | - | |
| 4816 | + | |
| 4817 | + | |
| 4818 | + | |
| 4819 | + | |
| 4820 | + | |
4820 | 4821 | | |
4821 | 4822 | | |
4822 | | - | |
4823 | | - | |
4824 | | - | |
| 4823 | + | |
| 4824 | + | |
| 4825 | + | |
| 4826 | + | |
| 4827 | + | |
| 4828 | + | |
| 4829 | + | |
| 4830 | + | |
| 4831 | + | |
| 4832 | + | |
| 4833 | + | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
| 4839 | + | |
| 4840 | + | |
| 4841 | + | |
| 4842 | + | |
| 4843 | + | |
4825 | 4844 | | |
4826 | | - | |
4827 | | - | |
4828 | | - | |
4829 | | - | |
| 4845 | + | |
4830 | 4846 | | |
4831 | 4847 | | |
4832 | 4848 | | |
| 4849 | + | |
| 4850 | + | |
| 4851 | + | |
| 4852 | + | |
| 4853 | + | |
| 4854 | + | |
| 4855 | + | |
4833 | 4856 | | |
4834 | 4857 | | |
4835 | 4858 | | |
| |||
4942 | 4965 | | |
4943 | 4966 | | |
4944 | 4967 | | |
4945 | | - | |
4946 | | - | |
4947 | | - | |
4948 | | - | |
4949 | | - | |
4950 | | - | |
4951 | | - | |
4952 | | - | |
| 4968 | + | |
| 4969 | + | |
| 4970 | + | |
4953 | 4971 | | |
4954 | 4972 | | |
4955 | 4973 | | |
| |||
0 commit comments