[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug lack of functionality in global 4.1.1
From: |
Shigio Yamaguchi |
Subject: |
Re: Bug lack of functionality in global 4.1.1 |
Date: |
Wed, 10 Oct 2001 17:25:39 +0900 |
OK. gctags didn't recognize forward declaration.
Would you please apply this patch?
Thank you.
*** Cpp.c Wed Oct 10 17:22:11 2001
--- Cpp.c.new Wed Oct 10 17:23:36 2001
***************
*** 144,152 ****
DBG_PRINT(level, "class");
if ((c = nexttoken(interested, reserved)) == SYMBOL) {
strcpy(classname, token);
- startclass = 1;
if (target == DEF)
PUT(token, lineno, sp);
}
break;
case '{': /* } */
--- 144,153 ----
DBG_PRINT(level, "class");
if ((c = nexttoken(interested, reserved)) == SYMBOL) {
strcpy(classname, token);
if (target == DEF)
PUT(token, lineno, sp);
+ if (peekc(0) != ';')
+ startclass = 1;
}
break;
case '{': /* } */
> Input file test.hxx:
>
> -------------
> // Forward declarations
> class CRpsIntfRel;
>
> // Const declaration
> const string PWD_FIL =3D "sys.dbLogin";
> -------------
>
> Result:
> ---------
> gctags -s test.hxx
> ---------
>
> In other words, the parser does not seem to handle forward declarations
> of classes correctly.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)