[cfe-users] Redirecting clang tooling errors

2016-08-04 Thread Lucas Soltic via cfe-users
Hello, I am trying to redirect the output emitted when running a tool through clang::tooling::runToolOnCode() to a buffer or string instead of stderr (llvm::errs()). I'm using clangTooling from release 3.9. When looking at clangTooling code and following the execution flow, I have found the

[cfe-users] traversing the ast using libtooling

2016-08-04 Thread folkert via cfe-users
Hi, When I want to walk over the complete ast and visit each node (by using a RecursiveASTVisitor<...>), do I need to implement all of TraverseDecl, TraverseStmt and TraverseType? Because with all of those it looks like some code is processed twice. Second question: there are other