Add throw/noexcept tests
This commit is contained in:
@@ -1653,7 +1653,7 @@ class CxxParser:
|
||||
|
||||
if self.lex.token_if("throw"):
|
||||
tok = self._next_token_must_be("(")
|
||||
fn.throw = self._create_value(self._consume_balanced_tokens(tok))
|
||||
fn.throw = self._create_value(self._consume_balanced_tokens(tok)[1:-1])
|
||||
|
||||
elif self.lex.token_if("noexcept"):
|
||||
toks = []
|
||||
|
||||
@@ -514,7 +514,12 @@ class Function:
|
||||
|
||||
template: typing.Optional[TemplateDecl] = None
|
||||
|
||||
#: Value of any throw specification for this function. The value omits the
|
||||
#: outer parentheses.
|
||||
throw: typing.Optional[Value] = None
|
||||
|
||||
#: Value of any noexcept specification for this function. The value omits
|
||||
#: the outer parentheses.
|
||||
noexcept: typing.Optional[Value] = None
|
||||
|
||||
#: Only set if an MSVC calling convention (__stdcall, etc) is explictly
|
||||
|
||||
Reference in New Issue
Block a user