[cfe-dev] Fetching typedef details via libclang

Stefan Seefeld stefan at seefeld.name
Mon Mar 28 13:55:15 PDT 2011


I'm looking for a way to query the libclang AST whether a typedef's 
referree type was constructed in-place, such as in

   typedef struct { ... } CXString;


Such constructs are rather common in C APIs, and I'd like to fold the 
two types (the anonymous struct with the 'CXString' alias) into one, to 
reduce the noise in the generated API documentation.

Is this possible, using libclang ? If not, any ideas how best to 
implement that ?

Thanks,
		Stefan



-- 

       ...ich hab' noch einen Koffer in Berlin...



More information about the cfe-dev mailing list