[cfe-dev] file handling

Manuel Klimek klimek at google.com
Fri Apr 13 01:41:52 PDT 2012


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
>




More information about the cfe-dev mailing list