Skip to content

Commit

Permalink
trim default parameters
Browse files Browse the repository at this point in the history
#fix
  • Loading branch information
alandefreitas committed Jan 13, 2025
1 parent 16ea2bd commit 1e1012a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/AST/ASTVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1089,9 +1089,11 @@ populate(
default_arg)
{
param.Default = getSourceCode(default_arg->getSourceRange());
param.Default = trim(param.Default);
if (param.Default.starts_with("= "))
{
param.Default.erase(0, 2);
param.Default = ltrim(param.Default);
}
}
}
Expand Down

0 comments on commit 1e1012a

Please sign in to comment.