List initialization as function default parameter will have an extra equals sign ("=").
yjiao-cgnx opened this issue · 1 comments
yjiao-cgnx commented
Pretty self-explanatory. If I have a function like this:
void take_an_vector(const std::vector<int>& input = {});
The default parameter parsed through CppAST, which is the InitExpression
field of CppParameter
, will show up as ={}
, instead of {}
.
I do not see a test of this behavior. Is this expected or by design?
xoofx commented
I do not see a test of this behavior. Is this expected or by design?
Not expected. PR welcome to fix it. 🙂