@@ -992,7 +992,9 @@ def _parse_using_directive(self, state: NonClassBlockState) -> None:
992992
993993 self .visitor .on_using_namespace (state , names )
994994
995- def _parse_using_declaration (self , tok : LexToken ) -> None :
995+ def _parse_using_declaration (
996+ self , tok : LexToken , doxygen : typing .Optional [str ]
997+ ) -> None :
996998 """
997999 using_declaration: "using" ["typename"] ["::"] nested_name_specifier unqualified_id ";"
9981000 | "using" "::" unqualified_id ";"
@@ -1004,12 +1006,15 @@ def _parse_using_declaration(self, tok: LexToken) -> None:
10041006 typename , _ = self ._parse_pqname (
10051007 tok , fn_ok = True , compound_ok = True , fund_ok = True
10061008 )
1007- decl = UsingDecl (typename , self ._current_access )
1009+ decl = UsingDecl (typename , self ._current_access , doxygen )
10081010
10091011 self .visitor .on_using_declaration (self .state , decl )
10101012
10111013 def _parse_using_typealias (
1012- self , id_tok : LexToken , template : typing .Optional [TemplateDecl ]
1014+ self ,
1015+ id_tok : LexToken ,
1016+ template : typing .Optional [TemplateDecl ],
1017+ doxygen : typing .Optional [str ],
10131018 ) -> None :
10141019 """
10151020 alias_declaration: "using" IDENTIFIER "=" type_id ";"
@@ -1023,7 +1028,7 @@ def _parse_using_typealias(
10231028
10241029 dtype = self ._parse_cv_ptr (parsed_type )
10251030
1026- alias = UsingAlias (id_tok .value , dtype , template , self ._current_access )
1031+ alias = UsingAlias (id_tok .value , dtype , template , self ._current_access , doxygen )
10271032
10281033 self .visitor .on_using_alias (self .state , alias )
10291034
@@ -1052,9 +1057,9 @@ def _parse_using(
10521057 raise CxxParseError (
10531058 "unexpected using-declaration when parsing alias-declaration" , tok
10541059 )
1055- self ._parse_using_declaration (tok )
1060+ self ._parse_using_declaration (tok , doxygen )
10561061 else :
1057- self ._parse_using_typealias (tok , template )
1062+ self ._parse_using_typealias (tok , template , doxygen )
10581063
10591064 # All using things end with a semicolon
10601065 self ._next_token_must_be (";" )
0 commit comments