xoofx/CppAst.NET

List initialization as function default parameter will have an extra equals sign ("=").

yjiao-cgnx opened this issue · 1 comments

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?

I do not see a test of this behavior. Is this expected or by design?

Not expected. PR welcome to fix it. 🙂