[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 fo

Re: [cfe-users] Redirecting clang tooling errors

2016-08-06 Thread Lucas Soltic via cfe-users
o much code to duplicate thanks to ToolInvocation::setDiagnosticConsumer() already existing. Best regards, L. Soltic > Le 4 août 2016 à 20:55, Lucas Soltic via cfe-users > a écrit : > > Hello, > > I am trying to redirect the output emitted when running a tool through >

Re: [cfe-users] uniquely identifying names

2016-08-30 Thread Lucas Soltic via cfe-users
I don't know which API you're using, but clang::NamedDecl::getQualifiedNameAsString seems to do what you want. > Le 30 août 2016 à 17:40, David Blaikie via cfe-users > a écrit : > > Do you want to identify the same entity across a valid program's various > source files? Across changes to that