[cfe-dev] file handling

Manuel Klimek klimek at google.com
Mon Apr 16 08:08:44 PDT 2012


On Mon, Apr 16, 2012 at 3:37 AM, Suhas <suhaslimaye at gmail.com> wrote:
> Yes!  But if you try to edit existing file with raw_fd_ostream , it modifies
> and create in MAC file format. ( If file mode is not set to binary ) on
> windows....

For answers to questions like this, it helps to keep the list cc'ed :)

Cheers,
/Manuel

>
> Suhas Limaye.
> Pune.
>
>
>
> On Fri, Apr 13, 2012 at 2:11 PM, Manuel Klimek <klimek at google.com> wrote:
>>
>> On Wed, Apr 11, 2012 at 5:47 AM, akshay ratnaparkhi <ackk007 at gmail.com>
>> wrote:
>> > Hi all,
>> >       Can any one tell me how to handle files in clang. I want to open
>> > the
>> > file in write mode and write some data in file. Can i use iostream ios::
>> > file handling in clang plugin.
>>
>> LLVM has its own ostream (in your case: llvm::raw_fd_ostream):
>>
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/raw_ostream.h?revision=124771&view=markup
>>
>> Cheers,
>> /Manuel
>>
>>
>> >  Thanks,
>> >       akshay
>> >
>> > _______________________________________________
>> > cfe-dev mailing list
>> > cfe-dev at cs.uiuc.edu
>> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>> >
>>
>> _______________________________________________
>> 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