Skip to content

Commit 1e1012a

Browse files
committed
trim default parameters
#fix
1 parent 16ea2bd commit 1e1012a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/AST/ASTVisitor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,9 +1089,11 @@ populate(
10891089
default_arg)
10901090
{
10911091
param.Default = getSourceCode(default_arg->getSourceRange());
1092+
param.Default = trim(param.Default);
10921093
if (param.Default.starts_with("= "))
10931094
{
10941095
param.Default.erase(0, 2);
1096+
param.Default = ltrim(param.Default);
10951097
}
10961098
}
10971099
}

0 commit comments

Comments
 (0)