Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Parsing Function Prototypes with AST

Hello guys,
im am working on a student project, extending cdt.
Our aim is listing all function prototypes from a c header file.
I have the ASTTranslation and Translation Unit object of the file.
I also can parse all prototypes as simple string for example.

But my problem is , if the return value of the function is not a simple type, but a type declared in a typedef, i dont get the linkage to the typedef for getting its base type.

So my question is whats the correct way to list prototypes of c functions that i also have access to the return value as an object to get its definition (I think i am using wrong obects to parse the functions). 

About a little hint i would be pleased
Best regards,
Patrick Schmitt


Back to the top