1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +00:00

Add etags test for the new -Q option

* test/etags/ETAGS.good_1, test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3, test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5, test/etags/CTAGS.good: Adjust to
test-case changes below.
* test/etags/ETAGS.good_6: New file.

* test/etags/cp-src/x.cc: New file.
* test/etags/Makefile (CPSRC): Add x.cc.
(check): Add one more test, for -Q.
This commit is contained in:
Eli Zaretskii 2015-05-30 15:01:49 +03:00
parent 5e73eab8fa
commit 0acb538bb0
9 changed files with 5435 additions and 1 deletions

View File

@ -931,6 +931,7 @@ MoveLayerAfter lua-src/allegro.lua /^function MoveLayerAfter (this_one)$/
MoveLayerBefore lua-src/allegro.lua /^function MoveLayerBefore (this_one)$/
MoveLayerBottom lua-src/allegro.lua /^function MoveLayerBottom ()$/
MoveLayerTop lua-src/allegro.lua /^function MoveLayerTop ()$/
Mx.cc cp-src/x.cc /^main(int argc, char *argv[])$/
NAME y-src/cccp.c 8
NATNUMP c-src/emacs/src/lisp.h /^NATNUMP (Lisp_Object x)$/
NDEBUG c-src/etags.c 88
@ -1508,6 +1509,7 @@ XTYPE c-src/emacs/src/lisp.h /^XTYPE (Lisp_Object a)$/
XUNTAG c-src/emacs/src/lisp.h /^# define XUNTAG(a, type) lisp_h_XUNTAG (a, type)$/
XUNTAG c-src/emacs/src/lisp.h /^XUNTAG (Lisp_Object a, int type)$/
XWINDOW c-src/emacs/src/lisp.h /^XWINDOW (Lisp_Object a)$/
XX cp-src/x.cc 1
Y c-src/h.h 100
YACC c-src/etags.c 2199
YELLOW cp-src/screen.hpp 26
@ -2486,6 +2488,7 @@ backslash=0 tex-src/texinfo.tex /^\\let\\indexbackslash=0 %overridden during \\
bar c-src/c.c /^void bar() {while(0) {}}$/
bar c.c 143
bar c-src/h.h 19
bar cp-src/x.cc /^XX::bar()$/
bas_syn prol-src/natded.prolog /^bas_syn(n(_)).$/
base c-src/emacs/src/lisp.h 2188
base cp-src/c.C /^double base (void) const { return rng_base; }$/
@ -2923,6 +2926,7 @@ foo c-src/h.h 18
foo cp-src/c.C 68
foo cp-src/c.C 79
foo cp-src/c.C /^ foo() {$/
foo cp-src/x.cc /^XX::foo()$/
foo f-src/entry.for /^ character*(*) function foo()$/
foo f-src/entry.strange_suffix /^ character*(*) function foo()$/
foo f-src/entry.strange /^ character*(*) function foo()$/

View File

@ -1950,6 +1950,12 @@ typedef int should_see_this_one_enclosed_in_extern_C;149,3156
typedef int (*should_see_this_function_pointer)should_see_this_function_pointer153,3229
typedef int should_see_this_array_type[should_see_this_array_type156,3311
cp-src/x.cc,63
class XX1,0
XX::foo(foo9,60
XX::bar(bar15,95
main(21,126
cp-src/burton.cpp,124
::dummy::dummy test::dummy1(dummy11,0
::dummy::dummy test::dummy2(dummy26,64

View File

@ -2463,6 +2463,14 @@ typedef int should_see_this_one_enclosed_in_extern_C;149,3156
typedef int (*should_see_this_function_pointer)should_see_this_function_pointer153,3229
typedef int should_see_this_array_type[should_see_this_array_type156,3311
cp-src/x.cc,102
class XX1,0
int foo(4,19
void bar(5,35
XX::foo(foo9,60
XX::bar(bar15,95
main(21,126
cp-src/burton.cpp,124
::dummy::dummy test::dummy1(dummy11,0
::dummy::dummy test::dummy2(dummy26,64

View File

@ -2248,6 +2248,12 @@ typedef int should_see_this_one_enclosed_in_extern_C;149,3156
typedef int (*should_see_this_function_pointer)should_see_this_function_pointer153,3229
typedef int should_see_this_array_type[should_see_this_array_type156,3311
cp-src/x.cc,63
class XX1,0
XX::foo(foo9,60
XX::bar(bar15,95
main(21,126
cp-src/burton.cpp,124
::dummy::dummy test::dummy1(dummy11,0
::dummy::dummy test::dummy2(dummy26,64

View File

@ -2114,6 +2114,12 @@ typedef int should_see_this_one_enclosed_in_extern_C;149,3156
typedef int (*should_see_this_function_pointer)should_see_this_function_pointer153,3229
typedef int should_see_this_array_type[should_see_this_array_type156,3311
cp-src/x.cc,63
class XX1,0
XX::foo(foo9,60
XX::bar(bar15,95
main(21,126
cp-src/burton.cpp,124
::dummy::dummy test::dummy1(dummy11,0
::dummy::dummy test::dummy2(dummy26,64

View File

@ -2925,6 +2925,14 @@ typedef int should_see_this_one_enclosed_in_extern_C;149,3156
typedef int (*should_see_this_function_pointer)should_see_this_function_pointer153,3229
typedef int should_see_this_array_type[should_see_this_array_type156,3311
cp-src/x.cc,102
class XX1,0
int foo(4,19
void bar(5,35
XX::foo(foo9,60
XX::bar(bar15,95
main(21,126
cp-src/burton.cpp,124
::dummy::dummy test::dummy1(dummy11,0
::dummy::dummy test::dummy2(dummy26,64

5369
test/etags/ETAGS.good_6 Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@ CSRC=$(addprefix ./c-src/,abbrev.c .//c.c torture.c getopt.h etags.c\
exit.c exit.strange_suffix sysdep.h tab.c dostorture.c\
emacs/src/gmalloc.c emacs/src/regex.h emacs/src/keyboard.c emacs/src/lisp.h\
machsyscalls.c machsyscalls.h fail.c a/b/b.c) ../etags/c-src/h.h
CPSRC=$(addprefix ./cp-src/,c.C burton.cpp burton.cpp\
CPSRC=$(addprefix ./cp-src/,c.C x.cc burton.cpp burton.cpp\
functions.cpp MDiagArray2.h Range.h\
screen.cpp screen.hpp conway.cpp conway.hpp clheir.cpp.gz clheir.hpp.gz fail.C)
ELSRC=$(addprefix ./el-src/,TAGTEST.EL emacs/lisp/progmodes/etags.el)
@ -53,6 +53,7 @@ check:
@$(MAKE) OPTIONS='--members' ediff_3
@$(MAKE) OPTIONS='--regex=@regexfile --no-members' ediff_4
@$(MAKE) OPTIONS='nonexistent --members --declarations --regex=@regexfile' ediff_5
@$(MAKE) OPTIONS='--class-qualify --members --declarations --regex=@regexfile' ediff_6
@$(MAKE) cdiff
ediff%: ETAGS.good% ETAGS ${infiles}

26
test/etags/cp-src/x.cc Normal file
View File

@ -0,0 +1,26 @@
class XX
{
public:
int foo();
void bar();
};
int
XX::foo()
{
return 1;
}
void
XX::bar()
{
foo();
}
int
main(int argc, char *argv[])
{
XX xx;
xx.bar();
return 0;
}