[cfe-dev] Detecting struct forward references

Jacob Carlborg doob at me.com
Fri Jul 27 13:18:05 PDT 2012


On 2012-07-27 17:11, Manuel Klimek wrote:

> 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.


-- 
/Jacob Carlborg




More information about the cfe-dev mailing list