Commit 05ef029
committed
Handle the
Given that C keeps a different namespace for `struct`s and aliases. The
following pattern
```c
typedef const struct foo {
void *bar;
} *foo;
```
is valid C code and produces both a `struct` and a pointer called `foo`.
Given that Rust does not make this distinction, we add the `_ptr` prefix
to the pointer type alias to avoid any name collisions.const struct * pattern.1 parent d241e95 commit 05ef029
File tree
3 files changed
+61
-0
lines changed- bindgen-tests/tests
- expectations/tests
- headers
- bindgen/ir
3 files changed
+61
-0
lines changedLines changed: 40 additions & 0 deletions
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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1089 | 1089 | | |
1090 | 1090 | | |
1091 | 1091 | | |
| 1092 | + | |
1092 | 1093 | | |
1093 | 1094 | | |
1094 | 1095 | | |
| |||
1099 | 1100 | | |
1100 | 1101 | | |
1101 | 1102 | | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
1102 | 1117 | | |
1103 | 1118 | | |
1104 | 1119 | | |
| |||
0 commit comments