Add support for type definitions in using/alias
This commit is contained in:
parent
c87b296d4e
commit
a635f5dd05
5 changed files with 85 additions and 11 deletions
|
|
@ -19,6 +19,8 @@ namespace
|
|||
{
|
||||
std::unique_ptr<cpp_expression> expression;
|
||||
detail::visit_children(cur, [&](const CXCursor& child) {
|
||||
if (clang_isDeclaration(clang_getCursorKind(child)))
|
||||
return;
|
||||
DEBUG_ASSERT(clang_isExpression(child.kind) && !expression,
|
||||
detail::parse_error_handler{}, cur, "unexpected child cursor of variable");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue