[cfe-users] How to detect trait keywords that have reverted to identifiers

2016-08-31 Thread Andy Gibbs via cfe-users
Hi, I'm having a problem that maybe someone here knows a good solution to. I have headers that use the clang type-trait built-ins, for example __is_void. However, using these headers will throw spurious errors if certain system headers are included before them. Here is a minimal bit of code t

[cfe-users] diagnostics

2016-08-31 Thread folkert via cfe-users
Hi, Something strange is happening while parsing using std::unique_ptr au = clang::tooling::buildASTFromCodeWithArgs(code, arguments, llvm::Twine(argv[i])); I get a lot of errors and warning written to stderr (how can I stop that apart from redirecting fd 2 to /dev/null?) but the following doe

Re: [cfe-users] uniquely identifying names

2016-08-31 Thread folkert via cfe-users
Oh right, indeed. Parser error (my brain) on my side: I looked for "fully q...". Mea culpa. On Tue, Aug 30, 2016 at 08:52:25PM +0200, Lucas Soltic wrote: > 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:

[cfe-users] How to detect trait keywords that have reverted to identifiers

2016-08-31 Thread Andy Gibbs via cfe-users
Hi, I'm having a problem that maybe someone here knows a good solution to. I have headers that use the clang type-trait built-ins, for example __is_void. However, using these headers will throw spurious errors if certain system headers are included before them. Here is a minimal bit of code t