On Tue, Jul 9, 2019 at 8:11 AM Monalisa Rout via cfe-commits
wrote:
>
> Hello, Currently I am dumping the Clang AST to the console but I want to
> write it to a file.
>
> I have pasted the code snippet.
>
> bool HandleTopLevelDecl(DeclGroupRef DR) override {
> for (DeclGroupRef::iterator b = DR.b
Hello, Currently I am dumping the Clang AST to the console but I want to
write it to a file.
I have pasted the code snippet.
bool HandleTopLevelDecl(DeclGroupRef DR) override {
for (DeclGroupRef::iterator b = DR.begin(), e = DR.end(); b != e; ++b) {
(*b)->dump(llvm::errs(), false,clang::ADOF_JSON