Skip to content

Commit bc61d75

Browse files
committed
Param default does not include equal sign
#fix
1 parent 3723bbb commit bc61d75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/AST/ASTVisitor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,10 @@ populate(
10891089
default_arg)
10901090
{
10911091
param.Default = getSourceCode(default_arg->getSourceRange());
1092+
if (param.Default.starts_with("= "))
1093+
{
1094+
param.Default.erase(0, 2);
1095+
}
10921096
}
10931097
}
10941098

0 commit comments

Comments
 (0)