Brussels / 1 & 2 February 2014


Two uses cases for the clang C++ parser: Online Code Browser and Qt moc Replacement.

In this talk we will see how one can use the clang libraries to build two practical tools. The first tool is an online C/C++ online code browser that uses clang to parse the AST in order to provide information about each token and build a cross reference database. [] The second tool is a replacement for Qt's moc (meta-object compiler) which is used by Qt to provide introspection and enable signals and slots and the QML language, both as a stand alone executable or as a clang plugin. [] The talk goes over implementation details and challenges encountered while developing.


Olivier Goffart