Allow object reference in C++ trailing return type

Fixes #231
This commit is contained in:
Olly Betts 2022-02-02 11:31:45 +13:00
commit 27a3d16ac6
3 changed files with 14 additions and 0 deletions

View file

@ -3383,6 +3383,10 @@ cpp_alternate_rettype : primitive_type { $$ = $1; }
*/
| TYPE_RAW { $$ = $1; }
| idcolon { $$ = $1; }
| idcolon AND {
$$ = $1;
SwigType_add_reference($$);
}
| decltype { $$ = $1; }
;