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
52 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,5 @@ | ||
struct SBar { | ||
// MBar: | ||
int m1; | ||
}; | ||
/* vim: set ft=c ts=4 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,5 @@ | ||
struct SFoo { | ||
// MFoo: | ||
int m1; | ||
}; | ||
/* vim: set ft=c ts=4 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,14 @@ | ||
#include <aheader.h> | ||
#include <bheader.h> | ||
|
||
struct SQuux { | ||
struct SFoo *pFoo; | ||
}; | ||
|
||
void func() | ||
{ | ||
struct SQuux quux; | ||
// #MFoo | ||
quux.pFoo->m1; | ||
} | ||
/* vim: set ft=c ts=4 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,13 @@ | ||
!_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 // | ||
SBar aheader.h /^struct SBar {$/;" s | ||
SFoo bheader.h /^struct SFoo {$/;" s | ||
SQuux file.c /^struct SQuux {$/;" s file: | ||
func file.c /^void func()$/;" f | ||
m1 aheader.h /^ int m1;$/;" m struct:SBar | ||
m1 bheader.h /^ int m1;$/;" m struct:SFoo | ||
pFoo file.c /^ struct SFoo *pFoo;$/;" m struct:SQuux typeref:struct:SQuux::SFoo file: |