better handling of using directives

This commit is contained in:
Frank Schlimbach 2019-02-26 07:27:12 -06:00 committed by Olly Betts
commit 63452e9fc1
6 changed files with 100 additions and 3 deletions

View file

@ -4468,11 +4468,12 @@ templateparameterstail : COMMA templateparameter templateparameterstail {
/* Namespace support */
cpp_using_decl : USING idcolon SEMI {
String *uname = Swig_symbol_type_qualify($2,0);
String *uname = Swig_symbol_type_qualify($2,0);
String *name = Swig_scopename_last($2);
$$ = new_node("using");
$$ = new_node("using");
Setattr($$,"uname",uname);
Setattr($$,"name", name);
Swig_symbol_add_using(name, uname, $$);
Delete(uname);
Delete(name);
add_symbols($$);