Workaround weird issue with broken children of function definition
This commit is contained in:
parent
2ce5ddc295
commit
099ff00908
2 changed files with 19 additions and 3 deletions
|
|
@ -333,6 +333,8 @@ namespace
|
|||
else
|
||||
stream.bump();
|
||||
}
|
||||
if (stream.peek() == "{" || stream.peek() == ":" || stream.peek() == "try")
|
||||
result.body_kind = cpp_function_definition;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -356,6 +358,9 @@ namespace
|
|||
|
||||
if (detail::skip_if(stream, "="))
|
||||
parse_body(stream, result, allow_virtual);
|
||||
else if (detail::skip_if(stream, "{") || detail::skip_if(stream, ":")
|
||||
|| detail::skip_if(stream, "try"))
|
||||
result.body_kind = cpp_function_definition;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue