[cfe-commits] [PATCH] More recursive visit removals
Anna Zaks
ganna at apple.com
Wed Mar 14 10:22:19 PDT 2012
On Mar 14, 2012, at 10:09 AM, Erik Verbruggen wrote:
>
> On 14 mrt. 2012, at 17:57, Anna Zaks <ganna at apple.com> wrote:
>
>>
>> On Mar 14, 2012, at 8:18 AM, Erik Verbruggen wrote:
>>
>>> Attached is probably the last one in the series.
>>
>> The patch looks good.
>>
>>> After that patch, there are two calls to ExprEngine::Visit left. One is in ExprEngine::ProcessStmt, but will have to stay there. The other one is in AggExprVisitor, called from ExprEngine::VisitAggExpr. This last one is only called from disabled code in ExprEngine::VisitCXXConstructExpr. Is it safe to remove this code too?
>>
>> I'd keep the dead code. Looks like it's the C++ support which is just waiting to be improved and productized.
>>
>> Thanks,
>> Anna.
>
> Should I commit the patch as-is, or add a comment that the recursive visit should be removed in the future?
>
A comment mentioning linearized CFG is a good idea.
(After looking at the code briefly, I am not sure if AggExprVisitor is needed at all. It looks like it's main purpose is to perform recursive visitation..)
Anna.
> -- Erik
>
>
>>>
>>>
>>> -- Erik.
>>>
>>> <0001-Remove-unnecessary-recursive-visits-for-ExprWithClea.patch>
>>>
>>>
>>> On Mar 14, 2012, at 1:21, Ted Kremenek wrote:
>>>
>>>> LGTM.
>>>>
>>>> On Mar 5, 2012, at 4:09 AM, Erik Verbruggen <erikjv at me.com> wrote:
>>>>
>>>>> This time in the VisitCXXConstructExpr method.
>>>>>
>>>>> -- Erik.
>>>>>
>>>>> <0001-Removes-more-recursive-visitations-in-ExprEngine-tha.patch>_______________________________________________
>>>>> cfe-commits mailing list
>>>>> cfe-commits at cs.uiuc.edu
>>>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>>>
>>>
>>> _______________________________________________
>>> cfe-commits mailing list
>>> cfe-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120314/0b51e60e/attachment.html>
More information about the cfe-commits
mailing list