Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added test case for jumping to the member of a wrong structure.
- Loading branch information
Showing
7 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sp := $(sp).x | ||
dirstack_$(sp) := $(d) | ||
d := $(dir) | ||
|
||
LOCAL_TEST_CASES := $(d)/file.c-test | ||
ALL_TEST_CASES := $(ALL_TEST_CASES) $(LOCAL_TEST_CASES) | ||
|
||
d := $(dirstack_$(sp)) | ||
sp := $(basename $(sp)) | ||
|
||
# vim: ft=make isfname-== noet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
void func() | ||
{ | ||
CStructType *c; | ||
// #Ama | ||
c->AStruct.ma; | ||
} | ||
/* vim: set ft=c ts=4 :*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
typedef struct | ||
{ | ||
// Bma: | ||
int ma; | ||
int mb; | ||
} BStructType; | ||
/* vim: set ft=c ts=4 :*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
typedef AStructType_s AStructType; | ||
|
||
struct AStructType_s | ||
{ | ||
// Ama: | ||
int ma; | ||
int mb; | ||
}; | ||
|
||
typedef struct CStructType_s | ||
{ | ||
AStructType AStruct; | ||
} CStructType; | ||
/* vim: set ft=c ts=4 :*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ | ||
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ | ||
!_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/ | ||
!_TAG_PROGRAM_NAME Exuberant Ctags // | ||
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ | ||
!_TAG_PROGRAM_VERSION 5.8 // | ||
AStruct file2.h /^ AStructType AStruct;$/;" m struct:CStructType_s | ||
AStructType file2.h /^typedef AStructType_s AStructType;$/;" t | ||
AStructType_s file2.h /^struct AStructType_s$/;" s | ||
BStructType file1.h /^} BStructType;$/;" t typeref:struct:__anon1 | ||
CStructType file2.h /^} CStructType;$/;" t typeref:struct:CStructType_s | ||
CStructType_s file2.h /^typedef struct CStructType_s$/;" s | ||
func file.c /^void func()$/;" f | ||
ma file1.h /^ int ma;$/;" m struct:__anon1 | ||
ma file2.h /^ int ma;$/;" m struct:AStructType_s | ||
mb file1.h /^ int mb;$/;" m struct:__anon1 | ||
mb file2.h /^ int mb;$/;" m struct:AStructType_s |