[Geany-devel] C++ tagmanager not recognising classes after field

Enrico Tröger enrico.troeger at xxxxx
Sun May 30 17:49:26 UTC 2010

On Thu, 27 May 2010 13:52:57 +1000, Lex wrote:

> Found it, C like parsing failed to account for the fact that a colon
> (:) could be used to indicate parents of a class or struct and still
> be used to indicate a bitfield size.

Wow, cool. Good catch!

> Patch attached.  I'm not sure I've got the tm formatting right so feel
> free to fix.

Thanks a lot.
I added parenthesis around "isLanguage (Lang_cpp) && (st->declaration
== DECL_CLASS || st->declaration == DECL_STRUCT)" to make gcc happy
(it warned about missing parenthesis around && within ||). It
still seems to work so I guess I did it the right way but I would be
happy if anyone could prove my change :).


Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20100530/1b46f9f8/attachment.pgp>

More information about the Devel mailing list