def testDefinesFunction(self): print(pplexer.preprocess(""" /** * http://freedesktop.org/standards/xesam/1.0/core#definesClass * * Source code defines class */ SOPRANO_EXPORT QUrl definesClass(); """))
def testComments(self): print(pplexer.preprocess(""" class Foo { public: /** * bar docs. */ void bar(); }; """))
def testDefinesFunction2(self): print(pplexer.preprocess("""/* * foo */ #ifndef _SOPRANO_SERVER_DBUS_CLIENT_H_ #define _SOPRANO_SERVER_DBUS_CLIENT_H_ #include <QtCore/QObject> #include "backend.h" #include "error.h" #include "soprano_export.h" namespace Soprano { class Model; }; #endif """))