[Geany-devel] C++ tagmanager not recognising classes after field
Lex Trotman
elextr at xxxxx
Thu May 27 03:52:57 UTC 2010
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.
Patch attached. I'm not sure I've got the tm formatting right so feel
free to fix.
Cheers
Lex
On 26 May 2010 19:34, Lex Trotman <elextr at gmail.com> wrote:
> In current SVN with the following C++ source file
>
> class a {
> int flags:8;
> };
>
> class c {
> int d;
> };
>
> tagmanager doesn't recognise c as a class or type or anything.
>
> But it recognises c as a class if either a is a struct not a class or
> flags isn't a field (ie no :8). It seems to be the combination that
> upsets it.
>
> I havn't been able to find where the problem is so far, can anyone
> provide any guidance.
>
> Cheers
> Lex
>
> PS Oh yes its perfectly good c++, compiles and all.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpp_patch.diff
Type: text/x-patch
Size: 742 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20100527/eb851eab/attachment.bin>
More information about the Devel
mailing list