C++ Parser, add your own macros here, no documentation? how to use?

Matt Rogers mattr at kde.org
Fri Mar 18 16:13:08 UTC 2005


On Friday 18 March 2005 03:49 am, Tobias Erbsland wrote:
> Hello
>
> I wrote a serializer for a c++ project. The serializer requires two
> additions to the class definition:
>
> class X : public SerializableObject
> {
> 	SERIALIZABLE_OBJECT( X );
>
> public:
> 	(...)
>
> private:
> 	SERIALIZE int a;
> 	SERIALIZE int b;
> };
>
> But the syntax parser complains always about the "SERIALIZE" macro, that is
> defined as "#define SERIALIZE".
>

dunno about this part. We need to nail roberto down and get him to document 
it, since he's the only one who knows

> How can i teach the parser about the macro SERIALIZE. And btw, is there a
> easy way to add SERIALIZABLE_OBJECT and SERIALIZE as new "user keyword" to
> the syntax highlightling? Thats possible in many other IDE's.
>

You'll have to modify the kate syntax highlighting file to make the "user 
keyword" thing happen. KDevelop doesn't really have its own text editor 
(unless you count QEditor but it's horribly out of date).

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20050318/369b4292/attachment.sig>


More information about the KDevelop-devel mailing list