[PATCH] D33644: Add default values for function parameter chunks

Ivan Donchevskii via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 28 03:50:30 PDT 2017


yvvan added a comment.

In https://reviews.llvm.org/D33644#793573, @klimek wrote:

> In https://reviews.llvm.org/D33644#783903, @yvvan wrote:
>
> > Do not evaluate numbers.
> >  Check for != "=" is needed not to mess with invalid default arguments or their types (without it I get "const Bar& bar = =" when Bar is not defined)
>
>
> Shouldn't we than instead check that error case?


I don't know the proper way to do that :) I also don't know the full amount of errors that might cause such behavior.
You can suggest the solution if you have some idea. Current one is safe because we just ignore any case that causes empty default string.


https://reviews.llvm.org/D33644





More information about the cfe-commits mailing list