[PATCH] Fix missing source location in CXXTemporaryObjectExpr.

Enea Zaffanella zaffanella at cs.unipr.it
Fri Sep 6 02:50:30 PDT 2013


On 09/05/2013 10:12 PM, Eli Friedman wrote:
> On Thu, Sep 5, 2013 at 12:34 AM, Enea Zaffanella <zaffanella at cs.unipr.it
> <mailto:zaffanella at cs.unipr.it>> wrote:
[...]
>     To summarize, I see two options:
>
>     (a) rename getParenRange() as getParenOrBraceRange();
>
>     (b) have two different methods, getParenRange() and getBraceRange(),
>     to be used based on the value of a boolean flag.
>     Question: is it the case that
>        bool CXXConstructExpr::__isListInitialization()
>     is such an appropriate flag to be used here?
>
>
> Yes.
>
>     I would probably opt for (b).
>     Do you see a third option which is better?
>
>
> I don't really see any other options; I guess I would lean towards
> option A, and let the users branch if they care about the difference,
> but either way works.

Please find attached a revised patch implementing option A.
OK to commit?

Enea.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CXXTempObjExpr.patch
Type: text/x-diff
Size: 12853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130906/f197ed62/attachment.patch>


More information about the cfe-commits mailing list