[PATCH] Fix missing source location in CXXTemporaryObjectExpr.

Eli Friedman eli.friedman at gmail.com
Fri Sep 6 14:33:39 PDT 2013


On Fri, Sep 6, 2013 at 2:50 AM, Enea Zaffanella <zaffanella at cs.unipr.it>wrote:

> 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?
>
>
LGTM.

-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130906/99e291b8/attachment.html>


More information about the cfe-commits mailing list