Commit d3d83ef
committed
docs(cpp,cuda): document pointer/reference declarator scope in handleDeclaration
Add an inline comment in handleCppDeclaration and handleCudaDeclaration
explaining that pointer_declarator / reference_declarator children are
intentionally skipped. Native Rust match_c_family_type_map has the same
scope: it only iterates 'init_declarator' and 'identifier' children, so
both engines behave identically for pointer/reference-typed locals.1 parent 2986c81 commit d3d83ef
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
0 commit comments