Skip to content

Commit

Permalink
Param default does not include equal sign
Browse files Browse the repository at this point in the history
#fix
  • Loading branch information
alandefreitas committed Jan 7, 2025
1 parent 3723bbb commit bc61d75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/AST/ASTVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,10 @@ populate(
default_arg)
{
param.Default = getSourceCode(default_arg->getSourceRange());
if (param.Default.starts_with("= "))
{
param.Default.erase(0, 2);
}
}
}

Expand Down

0 comments on commit bc61d75

Please sign in to comment.