[cfe-dev] Source rewrite

steve naroff snaroff at apple.com
Tue Dec 22 16:35:59 PST 2009


On Dec 22, 2009, at 7:26 PM, Fariborz Jahanian wrote:

>
> On Dec 22, 2009, at 4:17 PM, Douglas Gregor wrote:
>
>>
>> On Dec 22, 2009, at 4:13 PM, Fariborz Jahanian wrote:
>>
>>>
>>> On Dec 22, 2009, at 3:48 PM, Douglas Gregor wrote:
>>>
>>>>
>>>> On Dec 21, 2009, at 7:23 PM, ether zhhb wrote:
>>>>
>>>>> hi,
>>>>>
>>>>> its there any simple example that shows us how to rewrite the
>>>>> source
>>>>> code that clang just parsed?
>>>>
>>>>
>>>> The simplest rewriter that works on parsed ASTs is probably the
>>>> blocks
>>>> rewriter, in lib/Frontend/RewriteBlocks.cpp
>>>
>>> Above source is obsolete. All rewriting code is done in  lib/
>>> Frontend/RewriteObjC.cpp nowadays.
>>
>> Should we just remove it, then? Or does it still have value?
>
> Steve introduced it. He told me it is no longer in use. Let's get his
> confirmation before we act on it.
>

It is vestigial (used back when we were prototyping blocks/rewriting).

Please feel free to remove it...

snaroff

> - Fariborz
>
>>
>>
>> 	- Doug
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list