Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Sample code to get list of functions in a C/C++ program

This document is a good starting point for how to do things like this:

https://wiki.eclipse.org/images/c/c7/CDT_APIs_for_code_introspection.pdf

If you want a list of functions from an entire project (as opposed to one file), you probably want to use either the CElement API or the index API, depending on how much detail you need. (The CElement API will be easier to use, but give you less detail about things like the type/signature of the function.)

Hope that helps,
Nate

________________________________________
From: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> on behalf of burtongs <geraldstrait@xxxxxxxxx>
Sent: April 13, 2018 3:05:20 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] Sample code to get list of functions in a C/C++ program

Can anyone point me to sample CDT code to get a list of functions in a C/C++ program?  Thanks.


Back to the top