1

I'm looking to parse c++ code files in python. I'm mostly concerned with only the function declarations, not the definitions. The kind of output GCCXML gives seems perfect to me but the thing is I can't get GCCXML to work, I can't find proper documentation. All the articles I found online are old and possibly outdated.

Can anyone suggest any other alternative? Or and updated links regarding GCCXML.

I'm using Python 3.4.2 and IDLE.

2 Answers 2

3

You may want to have a look at clang: it provides a library which provides full access to the compilers AST. I seem to recall there was a python binding but I haven't used it.

Sign up to request clarification or add additional context in comments.

Comments

1

Clang has an API that can be used for code completion and more, AFAIK, with python bindings.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.