Detecting struct forward references

Is it possible to detect if a struct declaration is a forward reference? For example:

struct Foo;

I'm using libclang. If it's not possible in libclang how would I do it using the C++ APIs?

Is it possible to detect if a struct declaration is a forward reference?
For example:

struct Foo;

I'm using libclang. If it's not possible in libclang how would I do it
using the C++ APIs?

I don't know whether it's possible with libclang, but using the C++
APIs you'd find that this is a declaration, but not a definition
(isThisDeclarationADefinition()). With the AST matchers you'd find
them saying record(unless(isDefinition())).

Cheers,
/Manuel

Thanks, I'll have a look.