[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Global-commit] global libparser/Cpp.c libutil/token.c
From: |
Shigio YAMAGUCHI |
Subject: |
[Global-commit] global libparser/Cpp.c libutil/token.c |
Date: |
Sun, 07 Dec 2014 22:41:40 +0000 |
CVSROOT: /sources/global
Module name: global
Changes by: Shigio YAMAGUCHI <shigio> 14/12/07 22:41:40
Modified files:
libparser : Cpp.c
libutil : token.c
Log message:
[Bug fixed]
The C++ parser picked up compiler specific macros as a class name.
Now it works.
Submitted by Jason Hood.
$ cat -n test.cpp
1 class {};
2 class Ignore1;
3 class EXTERN Ignore2;
4 class C1 {};
5 class EXTERN C2 {};
6 class
7 {};
8 class
9 C3 {};
10 class
11 C4
12 {};
13 class
14 EXTERNAL
15 C5
16 {};
$ global -f test.cpp
C1 4 test.cpp class C1 {};
C2 5 test.cpp class EXTERN C2 {};
C3 9 test.cpp C3 {};
C4 11 test.cpp C4
C5 15 test.cpp C5
$ global -f test.cpp -rs
Ignore1 2 test.cpp class Ignore1;
EXTERN 3 test.cpp class EXTERN Ignore2;
Ignore2 3 test.cpp class EXTERN Ignore2;
EXTERN 5 test.cpp class EXTERN C2 {};
EXTERNAL 14 test.cpp EXTERNAL
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/global/libparser/Cpp.c?cvsroot=global&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/global/libutil/token.c?cvsroot=global&r1=1.27&r2=1.28
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Global-commit] global libparser/Cpp.c libutil/token.c,
Shigio YAMAGUCHI <=