Example #1
0
    def testDefinesFunction(self):
        print(pplexer.preprocess("""
            /**
             * http://freedesktop.org/standards/xesam/1.0/core#definesClass 
             * 
             * Source code defines class 
             */
            SOPRANO_EXPORT QUrl definesClass();

"""))
Example #2
0
    def testComments(self):
        print(pplexer.preprocess("""
class Foo {
public:
    /**
     * bar docs.
     */
    void bar();
};

"""))
Example #3
0
    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 
"""))