AST in JSONFormat

2019-06-08 Thread Monalisa Rout via cfe-commits
Hello, I am using LibTooling to dump the clangAST in JSON format which is available in clang 9. I need the JSON Schema for that. Is it available ?? If not wil you be interested in one ?? Regards, Mona ___ cfe-commits mailing list cfe-commits@lists.llvm

LLVM Types

2019-08-06 Thread Monalisa Rout via cfe-commits
Hello, Can I dump LLVM Type hierarchies somehow ?? Types which are declared in this file ("clang/AST/Type.h " ) Regards, Mona ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

AST for For loop

2019-08-06 Thread Monalisa Rout via cfe-commits
Hello, While dumping the AST for For loop, Why do I get <<>> ?? Source code: void func() { for (int i = 0; i < 5; i++) break; } AST FunctionDecl 0x4a4ac10 line:2:6 func 'void ()' `-CompoundStmt 0x4a4ae1c `-ForStmt 0x4a4adf8 |-DeclStmt 0x4a4ad38 | `-VarDecl 0x4a4acd0 col:11 used i

Re: AST for For loop

2019-08-06 Thread Monalisa Rout via cfe-commits
Awesome, thanks! On Tue, Aug 6, 2019 at 5:18 PM Aaron Ballman wrote: > On Tue, Aug 6, 2019 at 11:15 AM Monalisa Rout via cfe-commits > wrote: > > > > Hello, > > While dumping the AST for For loop, Why do I get <<>> ?? > > > > Source code: &g

QualType

2019-08-15 Thread Monalisa Rout via cfe-commits
Hello, I want to create QualType instances for *const int*, *int* const*, and *const int* const.* How can I do that?? Regards, Mona ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Dumping Clang AST to a file

2019-07-09 Thread Monalisa Rout via cfe-commits
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

-isysem path

2019-10-09 Thread Monalisa Rout via cfe-commits
Hello, I have created one visual studio application by using LibTooling library. I am dumping the AST and all LLVM Types. I want to pass the isystem path to the clangTool object. I have declared the isystem path in the Command Arguments (Project->Properties->Debugging->Command Arguments) input.c